DICTIONARY.getLength

Returns the number of elements in the dictionary.

Syntax

getLength( )
   RETURNS INTEGER

Usage

The getLength() method returns the total number of elements in the dictionary.

Example

MAIN
    DEFINE dict DICTIONARY OF STRING
    LET dict["abc"] = 111
    LET dict["def"] = 222
    LET dict["xyz"] = 999
    DISPLAY dict.getLength()   -- shows 3
END MAIN