Function AIns() Foundation
Inserts an element into an array and optionally assigns a value to it.
AIns( <aArray>, <nElement> [,<Expression>] ) --> aArray
Ains() returns the reference to <aArray>.
The array function AIns() inserts the value <Expression> at the position <nElement> within the array. All array elements, starting with this position, are shifted down one element and the content of the last element is lost. The number of array elements Len(<aArray>)remains unchanged by AIns().
To avoid losing the value in the last element the function AAdd() can be used. AAdd() adds an element to the end of the array prior to the insertion.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.