call to the "do" command...limited in standalones [was: Creating variables]

François Chaplais francois.chaplais at mines-paristech.fr
Tue Aug 5 20:25:44 EDT 2008


Le 6 août 08 à 00:19, Hansen Erik a écrit :

>
>
> unfortunately, this is another call to the "do" command whose usage
> is seriously limited in standalones (this has been already discussed).
> I wish that there were to tell transcript that when "set the
> <propepertyname> of <objectname> to <objectvalue>", <this> refers to
> variables whose value is the name of a transcript language chunk,
> without using the "do" command.
> I have never tried this before, but using a variable reference (with
> @  for instance?) would perhaps do the trick?
>
> Best regards
>     François
>
> ===
>
> What was the thread called?
>
> Merci, Erik
>

it seems the reply was messed up. The previous post was from Eric  
Chatonet, quoted below:
> Bonjour Eric,
>
> Le 6 juil. 08 à 22:38, Éric Miclo a écrit :
>
>
>> 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
>>
>
> put <whatever> into tContents
> do "put tContents into" && varName
>
> Best regards from Paris,
> Eric Chatonet.
>
(which prompted my remark on the do command)
it was itself a reply to
> Hello,
>
> I've 2 lists of names and want to create variables by combining the  
> names of the 2 lists.
>
> Example:
>
> listOne is:
>
> A
> B
> C
>
>
> listTwo is:
>
> 1
> 2
>
> and I want to create those variables:
>
> A1
> A2
> B1
> B2
> C1
> C2
>
> 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
> ...
>

by Eric Miclo. HTH



More information about the use-livecode mailing list