stegro
16th September 2013, 14:53
Hello,
I already searched the forum but could not find an answer to my question: (how) can I loop over the elements of an (string) array?

I get the error message " "(" not expected"

Or isn't it possible?

I like to do something like:

for array.element(1,1) to array.element(1,n)
...
endfor

Thanks in advance!

vahdani
16th September 2013, 15:20
Hi,

you have to use an index variable:


|define your index variable first:
long i

|Now use this index variable to loop the elements:

for i = 1 to n
....
string.var = string.array(1, i)
....
endfor

stegro
16th September 2013, 22:28
ups :rolleyes:... thank you, and sorry...