Equinox Online Help - Language Reference - A to Z

Home

VectorSize

Applies to
SyntaxVectorSize (vector)
Action[Function] Returns the size of a vector.
ScopeUsable anywhere
Notes

This function returns the number of elements contained within a particular vector. A vector is effectively an array expression specified by the vector parameter.

CategoryArrays
See Also ArrayGetDimensions, ArraySetDimensions, ArraySort, Vector
Example

This example shows two possible vectors for a two dimensional array.

Int S[5][10]

Print VectorSize(s) | Outputs the value 50
Print VectorSize(s[1]) | Outputs the value 10