Using a variable for an array name

Peter Bogdanoff bogdanoff at me.com
Wed Feb 1 18:13:36 EST 2017


I have arrays:
tArray1
tArray2
tArray3
tArray4


I want to get data from one of them:

put “tArray” & “1” into tVar
put tVar [“Text”] into tText1

tText1 is empty.



Is there a way to get the data from the arrays without doing this kind of thing for each array:

put tArray1 [“Text”] into tText1
put tArray2 [“Text”] into tText2

Thanks!

Peter Bogdanoff





More information about the use-livecode mailing list