Array_SetMaxIndex (Reserved Word)

image\trumpet2.gif Disclaimer

Resizes a dynamic array.  A dynamic array can be made larger or smaller and if made larger each new element will be initialized to the value used when the dynamic array was first created.  

Usage

Array_SetMaxIndex(ArrayName, MaxIndex);

Parameters

Name Description
ArrayName Identifies the dynamic array to resize and is the name given in the array declaration
MaxIndex An integer representing the index of the last element and is equivalent to the MaxIndex value used when declaring a static array.  This value can be greater than or equal to 0.

Remarks

Returns a boolean value indicating success or failure.

NumExamples

Changes the size of a newly created dynamic array to a maximum index value of 7.

Array: MyDynArray[](0);

//... other easylanguage statements

Condition1 = Array_SetMaxIndex(MyDynArray, 7);