Using a field list to act as variables?
Martin Baxter
martin at materiaprima.fsnet.co.uk
Thu Apr 8 17:27:09 EDT 2004
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
More information about the use-livecode
mailing list