This could be accomplished with the 'do' command, but I would use a property list instead of separate variables. You can use your myVariable1, etc., as property names. As a bonus, it probably executes quite a bit faster than using 'do'.
At 1003 -0400 05/26/2005, George S. Roland wrote: >I am sure there must be a simple way to do this, but I'm having trouble >figuring out what it is. > >Say I have numbered variables: >myVariable1, myVariable2, myVariable3, etc. > >Is there a way to initialize them with a loop such as: > >repeat with i = 1 to 3 > set myVariable(i) = something >end repeat > >All suggestions appreciated! >... [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
