DYNAMIC ARRAY.getLength

Returns the length of the array.

Syntax

getLength( )
   RETURNING result INTEGER

Usage

This method returns the number of elements in the array.

Example

DEFINE arr DYNAMIC ARRAY OF STRING,
       i INTEGER
FOR i=1 TO arr.getLength()
    DISPLAY arr[i]
END FOR