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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)