java-array.getLength

Returns the length of the Java array.

Syntax

getLength( )
   RETURNING result INTEGER

Usage

This method returns the number of elements in the Java array.

Example

IMPORT JAVA java.lang.String
MAIN
    TYPE string_array_type ARRAY[] OF java.lang.String
    DEFINE names string_array_type
    LET names = string_array_type.create(100)
    LET names[1] = "aaaaaaa"
    DISPLAY names.getLength()
END MAIN