Programmer Guide > Working with Lists and Associative Arrays > How to Reference an Associative Array
  

How to Reference an Associative Array
The basic syntax of a reference to a element of an associative array is:
variable_name (key_name)
where variable_name must be a variable that contains an associative array, and key_name is the name of the key (a string) and must exist for the associative array.
Embedded, nested associative arrays use a subscripting scheme similar to that of multi-dimensional arrays:
variable_name(key_name1, key_name2, ...)
 
note
If the elements of nested associative arrays are of type structure or list, they follow the rules for subscripting structures or lists.

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.