getSize()/getLength()

 

The getsize() and getlength() methods return the size or the length of a single-dimensional array. It accepts no parameters:

 

array_variable.getsize()

 

array_variable.getlength()

 

Here is a simple example:

 

DEFINE ar DYNAMIC ARRAY OF CHAR(15)

...

   LET ar[3000]="element "||3000

 

CALL ar.getsize()                #returns 3000