Support

Equilla Formula Language

SetMaxIndexVector

Sets the largest index value for this vector. Can be used to expand or shrink a vector. Vectors are zero based, so setting a value of 0 will reduce the vector to one element. Use ClearVector to remove all elements from a vector.

Inputs

Vector
Numeric: The vector.
MaxIndex
Numeric: The largest index available in the vector.

Examples

Set the maximum index of a 4 element vector to 10
Variables: myArray( Vector( 0, 4 ) ); SetMaxIndexVector( myArray, 10 ); Print( FormatVector( myArray ) ); // Prints 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0