Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
borderColor#3D3D3D
bgColor#F4F4F4
titleColor#3D3D3D
borderWidth0
titleBGColor#3D3D3D
borderStylesolid

ON THIS PAGE

Table of Contents
indent20px

Insert excerptBrightScript Version Navigation MenuBrightScript Version Navigation MenunopaneltrueThis object allows you to store objects in an associative array (also known as a map, dictionary, or hash table), a data structure that associates objects with string keys. 

...

Appends a second associative array to the first.

 

 


...


Code Block
titleExample
aa = CreateObject("roAssociativeArray") 
aa.AddReplace("Bright", "Sign")
aa.AddReplace("TMOL", 42) 
print aa.Lookup("tmol")
print aa.Lookup("bright") 

The above script returns the following: 

Code Block
42
Sign

...


Alternatively, you can use the Dot Operator in place of the AddReplace() and Lookup() methods:

...