How to recover the current sage x3 folder name: nomap ()
We have already seen how to recover the basic path of a folder. To find the name of the current folder, use the instruction: nomap(NUMBER) In detail, if the current folder is the third...
To start programming in Sage X3 and to develop first projects often need very simple but basic knowledge to proceed.
Here you will find a series of posts on small basic aspects of programming in Sage X3
We have already seen how to recover the basic path of a folder. To find the name of the current folder, use the instruction: nomap(NUMBER) In detail, if the current folder is the third...
To go in a new line in the middle of a code instruction just put & as first character (without any spaces before) of the new line. Here an example: [M:YTX]YFIELD1(nolign-1) = [F:YTM]YFIELD2 +...
Let’s see today how to use time and date in Sage X3. To get the current date in a Date variable, use the date$ function. In the same way to have current date and...
Conditions If Then Else The following scripts are equivalent: If I=1 Then J=2 Else J=3 : Endif If I=1 : J=2 Else J=3 : Endif # the “:” allow to write one instruction after the other...
To sort an array use Sorta with the following syntax: SORTA NUMVALUE_ToORDER ARRAY [Desc] SORTA NUMVALUE_ToORDER ARRAY1, array2 [Desc] (array2 ordered following the order of ARRAY1) Example: Local Char STR(255)(0..4) Local Integer NUMBER(0..4) Local...