I have a set of 48 global variables and a list of up to 48 words.
One would think the following would work (although I understand why it doesn't, if that makes sense):
Code: Select all
global gWordCount01
global gw1,gw2,gw3,gw4,gw5,gw6,gw7,gw8,gw9,gw10,gw11,gw12,gw13,gw14,gw15,gw16,gw17,gw18,gw19,gw20,gw21,gw22,gw23,gw24
global gw25,gw26,gw27,gw28,gw29,gw30,gw31,gw32,gw33,gw34,gw35,gw36,gw37,gw38,gw39,gw40,gw41,gw42,gw43,gw44,gw45,gw46,gw47,gw48
on mouseUp
repeat with tWords= 1 to gWordCount
put tWords into (gw&tWords)
end repeat
end mouseUp


Additional question: is there a way to script to make a local variable a global one
