I am ashamed to admit that I have never worked with dictionaries (the software kind ofcourse), atleast that I know of.
Can I have an example of how one builds a dictionary and how the elements in the dictionary are addressed/accessed?
Thanks.
Some basic help with dictionaries
Think of it like an array, but the index can be anything.
http://poldoc.fem.tu-ilmenau.de/pol096/ ... Dictionary
Example:
You can check the existance of something with
if ( dictionary.Exists(key) ) or if ( dictionary[key] )
Associative arrays is another way to describe them.
http://poldoc.fem.tu-ilmenau.de/pol096/ ... Dictionary
Example:
Code: Select all
var my_var := dictionary;
my_var["kiko"] := "Learning Dicts.";
my_var[mobile_ref] := my_var["Kiko"];
if ( dictionary.Exists(key) ) or if ( dictionary[key] )
Associative arrays is another way to describe them.