The Java Array type as class / Java Array type methods |
Returns the length of the Java array.
getLength( ) RETURNING result INTEGER
This method returns the number of elements in the Java array.
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