Problem creating set of variables
Mark Schonewille
m.schonewille at economy-x-talk.com
Fri Dec 1 09:52:45 EST 2006
Hi Thierry,
You cannot put one literal into another literal. In your case, you
might want to use arrays:
put empty into myVar[x]
or a do statement:
do "put empty into myVar" & x
Best,
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Get your store on-line within minutes with Salery Web Store software.
Download at http://www.salery.biz
Op 1-dec-2006, om 15:16 heeft Thierry het volgende geschreven:
> hi all,
>
> I submit you a strange problem I'm encountering. I want to create
> local variables with the following script:
>
> repeat with x = 1 to 3
> put empty into ("Myvar" & x)
> end repeat
>
> Surprisingly, this does not work. In fact it opens the Error window
> which indicates:
>
> Type Chunck: bad destination
> Object button
> line put empty into ("Myvar" & x)
> hint (
>
> Has someone an idea of what is happening?
>
> Thank,
> Thierry
More information about the use-livecode
mailing list