Array Question
Len Morgan
len-morgan at crcom.net
Sun Aug 9 23:14:36 EDT 2009
Can you use a variable name as the index of an array? It doesn't appear
so or I'm doing something wrong. Here's what I'm trying:
put 1 into tasks["Search"]
put 2 into tasks["Reports"]
then in a menuPick handler:
on menuPick pChoice
goto cd tasks[pChoice]
end menuPick
I need to do this because I have more cards than I have menu choices and
they are intermixed with the "real" ones and I don't want the user to go
directly to these "hidden" cards.
Am I going to have to resort to a "do" command? I tried that quickly
but it just gave me an error.
len morgan
More information about the use-livecode
mailing list