To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
The Append() and AppendElement() methods add a new array element after the last array element. The size of the array will increase by 1. The Append() method accepts one parameter which is the value to be inserted into the added array element:
array_variable.append(value)
The AppendElement() method does not need any parameters and adds a new element with the NULL value. The syntax of the method is as follows:
CALL ar.AppendElement()
The methods are applicable only to dynamic arrays and do not have any effect on the static ones.
DEFINE ar DYNAMIC ARRAY OF CHAR(15)
...
FOR i = 1 TO 5 #the array has 5 elements
LET ar[i]="element "||i
END FOR
CALL ar.append("element 6") #adds 6th element to the array
CALL ar.appendelement() #adds 7th element with the NULL value
DISPLAY ar.GetLength() #displays "7"