alternative to do for loading variables from array?
Dr. Hawkins
dochawk at gmail.com
Sat Mar 15 16:04:15 EDT 2014
Is there a "decent" way to load variables from an array without "do" or a
long list of commands?
If theList[pageName] is "cat page" and so forth, I can
repeat for each word theVar in "pageName pageHeight pageWidth"
do "put " & theList[theVar] & " into " & theVar
end repeat
but this will cause a slew of compiles.
I could also rattle off the list, but this is more maintainable.
Is there a better way to do this?
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
More information about the use-livecode
mailing list