Variable Named Variable Values?

Robert Brenstein rjb at robelko.com
Fri May 16 15:02:41 EDT 2014


On 16.05.2014 at 14:32 Uhr -0400 Rick Harrison apparently wrote:
>
>How do I now assign the values to the original Variable Name by 
>referring to the correct variable name read in?
>
>This is some kind of a double reference possibly referring to 
>contents or the value of a variable, it may involve arrays etc.
>
>Ideas? Suggestions?
>

If you actually want variable names, the "do" command is your friend.

do "put" && q(tVarValue) && "into" tVarName

However, such things are really easier to handle as arrays.

put tVarValue into gSessionGlobal[tVarName]

Robert




More information about the use-livecode mailing list