Declare a Variable from a Variable?

Richard Gaskin ambassador at fourthworld.com
Sun Jun 13 19:49:59 EDT 2004


Derek Bump wrote:

> Can you declare a variable from a variable in Transcript?  Like the
> following...
> 
> put "randomVariableName" into newVariableToCreate
> create variable newVariableToCreate

You may find it useful to use an array for that, with the key serving as 
the variable name:

   put tSomeData into tMyVarsA[newVariableToCreate]

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the use-livecode mailing list