You can use the consoleLib.currentArrayCount() system function to determine the number of elements in the dynamic array that is associated with the current active form.
EGL provides the consoleLib.currentArrayCount() function to support applications migrating from Informix® 4GL. Do not use this function in new code; instead, use the array-specific getSize() function; see Arrays.
consoleLib.currentArrayCount( )
returns (result INT)
The following example shows the consoleLib.currentArrayCount() function:
maxIndex = consoleLib.currentArrayCount();