Shift method: Array class
Syntax
Shift()
Description
Use the Shift method to remove the first element from the array and return it. Any following elements are "shifted" to an index of one less than they had.
Parameters
None.
Returns
Returns the value of the first element of the array. If the first element is a subarray, the subarray is returned.
Example
For &i = 1 to &ARRAY.Len;
&ITEM = &ARRAY.Shift();
/* do processing */
End-For;