Selecting a Variable name by Script

Mark Talluto userev at canelasoftware.com
Sun May 1 20:39:48 EDT 2005


On May 1, 2005, at 4:56 PM, Dennis Brown wrote:

> global gVariable1
> on test
>   put 1 into x
>   put 50 into ("gVariable"&x)
> end test

How about:

  put 1 into x
  put 50 into gVariable[x]


Mark Talluto
-- 
CANELA Software
http://www.canelasoftware.com



More information about the Use-livecode mailing list