ArraySize

Description:              This function returns the number of elements in an array dimension.

Returns:                    Numeric

Usage:                       Script or Steady State

Format:                      ArraySize(Array, Dimension)

Parameters:             Array   { array }  { required }  { no default: }

                                                Any array variable.

                                    Dimension  { numeric }  { required }  { no default: }

                                                Any numeric expression that gives the array dimension to measure starting at 0.

Comments:               If Array is a variable rather than an array, return value will be invalid.

                             This function is useful for writing intelligent parameterized modules. The module can determine how many elements there are in an array that is passed to it.

Example:

q[10];

...

size = ArraySize(Q, 0);

In this example, Size will receive the value 10.

See Also:

ArrayDimensions | ArrayStart| Array Functions