Using a field list to act as variables?

Glen Bojsza gbojsza at mac.com
Thu Apr 8 16:53:55 EDT 2004


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



More information about the use-livecode mailing list