Indirection question
Scott Rossi
scott at tactilemedia.com
Wed Feb 19 10:21:01 EST 2003
Recently, "Barry Levine" wrote:
> What I'd like to do is something like:
>
> on mouseUp
> if currentLetter = "W" then put "theW" into theList
> (etc)
> answer theList
> end mouseUp
>
> Now, if I do this, the answer dialog shows "theW" instead of the
> contents of the var named theW. Obviously, I'm not referring to the
> variable in the appropriate manner.
>
> Any ideas?
If theW is a global variable, use it without the quotes:
on mouseUp
if currentLetter = "W" then put theW into theList
(etc)
answer theList
end mouseUp
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list