DICTIONARY
A dictionary defines an associative array (hash-map) of elements.
Syntax
DICTIONARY
[ ATTRIBUTES( attribute [ = "value" ] [,...] ) ]
OF data-type
- data-type can be a data type, a record definition, a user defined type, a built-in class, an imported package class, or a Java class.
- attribute is an attribute to extend the dictionary definition with properties.
- value is the value for the dictionary definition attribute, it is optional for boolean attributes.
Usage
A dictionary defines an associative array of unordered elements, accessed by a key.
The elements of the dictionary can be of a simple type, or structured records.
The dictionary subscript syntax consists of a character string expression (the key), specified between square brackets.
The result of the subscript syntax can be used as l-value (as target variable in assignments):
LET dict["abcdef"] = "the value"
or as r-value (in expressions):
DISPLAY dict["abcdef"]