Array Question
Phil Davis
revdev at pdslabs.net
Sun Aug 9 23:20:33 EDT 2009
Len Morgan wrote:
> 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
Hi Len,
If your actual script contains "goto" and not "go to", that could be
your problem.
--
Phil Davis
PDS Labs
Professional Software Development
http://pdslabs.net
More information about the use-livecode
mailing list