05-16-2008, 07:15 PM
This is a problem I encountered many times:
In a repeat command, I want to refer to a different string or macro or anything alike, each cycle. I want the name of the string, for example, to be a variable.
It should be more or less something like this:
str strng1="one"
str strng2="two"
str strng3="three"
int i
i=0
rep
if(i=3) break
i=i+1
mes strngi (or strng+i, or anything)
the result should be 3 following messages: one, two, three
do you know any way to do something like this?
In a repeat command, I want to refer to a different string or macro or anything alike, each cycle. I want the name of the string, for example, to be a variable.
It should be more or less something like this:
str strng1="one"
str strng2="two"
str strng3="three"
int i
i=0
rep
if(i=3) break
i=i+1
mes strngi (or strng+i, or anything)
the result should be 3 following messages: one, two, three
do you know any way to do something like this?