HyperTalk: Creating an Array of Globals (8/93)
The following handler creates a global variable array -- a set of
consecutively-numbered global variable names: for example X1, X2, X3, and
so on.
on mouseUp
repeat with i = 1 to 10
do "Global X" & i
do "put 0 into X" & i -- optional
end repeat
end mouseUp
This article is adapted from the Claris Tech Info database.
Published Date: Feb 19, 2012
Still need help?