Using a field list to act as variables?
Glen Bojsza
gbojsza at mac.com
Thu Apr 8 18:28:18 EDT 2004
Martin,
This works and it helps more than you can imagine!
thanks,
Glen
On Thursday, April 8, 2004, at 04:27 PM, Martin Baxter wrote:
> Hello Glen,
>
> try:
>
> put "1,2,3" into yt1
> put "4,5,6,7" into yt2
> put "9,8,7" into yt3
> put empty into tSolar
> repeat for each line L in field "nOrbit"
> put value(L) & cr after tSolar --##
> end repeat
> delete last char of tSolar
> put tSolar
>
> HTH
>
> martin
>
>> Hi,
>>
>> I am experimenting with the following and was hoping someone can tell
>> me why it doesn't work...
>>
>> I have a field nOribit with 3 lines
>>
>> yt1
>> yt2
>> yt3
>>
>> on mouseUp
>> put empty into tSolar
>> repeat for each line L in field "nOrbit"
>> put L & cr after tSolar
>> end repeat
>> delete last char of tSolar
>>
>> put "1,2,3" into yt1
>> put "4,5,6,7" into yt2
>> put "9,8,7" into yt3
>>
>> put tSolar -- this gives yt1,yt2,yt3 and not the values
>>
>> if I do the following
>>
>> put yt1 & cr & yt2 & cr & yt3 into tSolar
>>
>> put tSolar -- this gives the values
>>
>>
>> Yes, I know that an array would work but I'm trying to understand if
>> there is a way for the above to work.
>>
>> thanks,
>>
>> Glen
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list