05-16-2008, 07:29 PM
Macro
str ss="one[]two[]three"
str s
foreach s ss
,mes s
;or
str strng1="one"
str strng2="two"
str strng3="three"
str* a=&strng1 ;;note: other variables must not be declared between string1, string2 and string3
int i
for i 0 3
,mes a[i]
;or
ARRAY(str) sa.create(3)
sa[0]="one"
sa[1]="two"
sa[2]="three"
int j
for j 0 a.len
,mes sa[j]