Take the 2-minute tour ×  I've got an Inno Setuo Preprocessor
array defined like this  #dim MYARRAY[3] #define MYARRAY[0]
'foo' #define MYARRAY[1] 'bar' #define MYARRAY[1] 'baz'  No I
would like to iterate over that array and put its contents into
my translation, something like (non-working):  #define i 0  #for
{i = 0; i < NUMBERELEMENTS; i++} {#MYARRAY[i]}  I found the
following to be working, though, but is this the only doable
way? Using i as a 'global' variable feels and simpy using a #sub
feels just wrong.  #sub mysub #for {i = 0; i < NUMBERELEMENTS;
i++} mysub   What puzzled me, is that the following does not
generate anything in the translation:  #define GetElement()
MYARRAY[i] #for {i = 0; i < NUMBERELEMENTS; i++} GetElement(i)
I'd expected it to generate one line of content per element of
MYARRAY in the translation.  share|improve this question Global
variable (if we're talking about the MYARRAY variable in your
code) is perfectly fine for this task. What is your real
intention for doing all of this