Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
names (of anything) as variables
#1
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?


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)