Indirection question

Richard Gaskin ambassador at fourthworld.com
Wed Feb 19 16:08: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?

Arrays?

  put "W" into tKey
  put tVal into tMyVarListA[tKey]

...and to get the list:
  
  put the keys of tMyVarListA into tMyVars

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list