These methods are used to manipulate variables of a DYNAMIC ARRAY data type (e.g., to add and remove array elements).
Dynamic arrays are resized automatically when elements are assigned values and their size corresponds to the largest element index.
Dynamic array methods are invoked in this way:
DEFINE ar DYNAMIC ARRAY OF CHAR(15)
CALL ar.<Method>(<parameters>)
Some methods have two variants. They differ in the method name and/or its parameters.
Available methods
adds a new element after the last element of the array |
|
adds a new element with the NULL value to the array (takes no parameters) |
|
inserts a new array element to the specified position (the value of a new element is passed as one of the method parameters) |
|
inserts an empty array element to the specified position |
|
resizes the single-dimensional array to the specified size |
|
returns the size of a single-dimensional array |
|
returns the length of a single-dimensional array |
|
removes all the specified array elements within the given range or at the given position |
|
removes the specified array element |
|
removes all the elements |
|
concatenates all the elements of an array into a string |