Array_GetMaxIndex (Reserved Word)
Returns the index of the last element of a dynamic array. Note that the actual number of elements that an array can hold is the MaxIndex+1.
Usage
Array_GetMaxIndex(ArrayName);
Return
An integer value greater than or equal to 0 will be returned if the function is successful. This value is equivalent to the MaxIndex value used when declaring a static array.
Parameters
Name | Description |
ArrayName | Identifies the dynamic array for which you want to get the size and is the name given in the array declaration |
Examples
Value 2 will contain the maximum index value of 8 for the specified dynamic array.
Array: MyDynArray[](0);
Condition1 = Array_SetMaxIndex(MyDynArray,8);
//... other easylanguage statements
Value2 = Array_GetMaxIndex(MyDynArray);