If I have an associative array
}I can easily retrieve any of the array members by key:
BrightScript Debugger> print categories.key1
test
west
bestis there any way to stick "key1" into a variable like;
keyvar=key1
print categories.keyvarso I can call a function with the key as string and get back the member associated with that key?
in the meantime I'm using an if-then like this:
if key="key1" : print categories.key1
if key="key2" : print categories.key2
if key="key3" : print categories.key3and so on, but this presupposed that the key's are known to the current function
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!