Dictionary properties
Each property/value entry is syntactically equivalent to a key/value
entry, as shown in the following example. The entries can be in any
order:
myRef Dictionary
{
// properties
caseSensitive = no,
ordering = none,
// key/value pairs
ID = 5,
lastName = "Twain",
firstName = "Mark",
age = 30
};Your code can neither add nor retrieve a property or its value.
The following properties are available:
- caseSensitive
- Indicates whether case affects key access. The following options
are available:
- NO (the default)
- The case of the key does not affect key access. The following
statements are equivalent:
age = row.age; age = row.AGE; age = row["aGe"]; - YES
- The following statements can have different results, even though
EGL is primarily a case-insensitive language:
age = row.age; age = row.AGE; age = row["aGe"];
The value of the caseSensitive property affects the behavior of several of the functions described in Dictionary functions.
- ordering
- Determines the order of the keys that you retrieve. The value of this property affects the behavior of the functions getKeys() and getValues(). For more information, see Dictionary functions. The value of the property does not affect the way the dictionary stores the keys (always in the order you entered them), but the order in which you can retrieve them.
Compatibility
| Platform | Issue |
|---|---|
| COBOL generation | The Dictionary part is not supported. |