Methods of native arrays

Table 1. Object methods of Static and Dynamic Arrays
Name Description
appendElement()
Adds a new element at the end of a dynamic array. This method has no effect on a static array.
clear()
Removes all elements in a dynamic array. Sets all elements to NULL in a static array.
deleteElement(pos INTEGER)
Removes an element at the given position. In a static or dynamic array, the elements after the given position are moved up. In a dynamic array, the number of elements is decremented by 1.
getLength()
  RETURNING result INTEGER
Returns the length of a one-dimensional array.
insertElement(pos INTEGER)
Inserts a new element at the given position. In a static or dynamic array, the elements after the given position are moved down. In a dynamic array, the number of elements increments by 1.