Referencing a variable?
Richard Gaskin
ambassador at fourthworld.com
Sun Nov 27 20:49:14 EST 2005
Ian Leigh wrote:
> I would like to do the following:
>
> Put a variable name into another buffer variable.
> Reference the actual variable but using the buffer variable.
>
> So I only have the name of the variable in the buffer but I want to
> put a value into the actual variable only by using the variable
> name which is stored in the buffer.
Turning the problem inside out, could it be stated that the goal is to
be able to refer to a variable without knowing the variable's name in
advance?
If so, you might consider using array notation:
put "MyName" into x
put "123" into tBuffer[x]
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list