Returns the total number of elements in an array or the number of elements in a specific dimension.

Length := ARRAYLEN(Array[, Dimension])

Parameters

Array

Type: Any

The array that you want to investigate.

Dimension

Type: Integer

If you omit this optional argument, the function returns the total number of elements in the array. To get the number of elements in a specific dimension, use Dimension with a valid value. The valid values are determined by the number of dimensions of the input array. For example, the valid values for a three-dimensional array would be 1, 2, and 3.

Expand imageProperty Value/Return Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also