Category: Starting developing

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

0

How to use time and date

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...

0

Loops and conditions

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...

0

Sorting an array in Sage X3

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...