Creating variables
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Jul 6 16:49:56 EDT 2008
Hi Éric,
Use the do command:
do ("put" && quote & "test" & quote && "into" && varName)
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html
for more info.
On 6 jul 2008, at 22:44, Éric Miclo wrote:
> Hello,
>
> I've 2 lists of names and want to create variables by combining the
> names of the 2 lists.
>
> Example:
> <snip>
>
> I did try this:
>
> repeat for each line lineListOne in listOne
> repeat for each line lineListTwo in listTwo
> put "test" into (lineListOne & lineListTwo)
> end repeat
> end repeat
>
> and this (though I was sure it didn't work):
>
> repeat for each line lineListOne in listOne
> repeat for each line lineListTwo in listTwo
> put (lineListOne & lineListTwo) into varName
> put "test" into varName
> end repeat
> end repeat
>
> and some other variants (using the value of...) but nothing is
> working.
>
> Is that possible or do I have to "manually" initialize the variables
> that way:
>
> put "test" into A1
> put "test" into A2
> ...
>
> Thanks, best,
>
> ÉrIC
More information about the use-livecode
mailing list