Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
One String, 6 Variables
#1
Hello All!

I have a string containing 6 lines, separated by a hard return, which I would like to assign to 6 different variables.

How is this done?

Thanks!
#2
6 variables could be array elements.

Code:
Copy      Help
str s=
;line1
;line2
;line3
;line4
;line5
;line6


ARRAY(str) a
a=s
int i
for i 0 a.len
,out i
,out a[i]


Forum Jump:


Users browsing this thread: 1 Guest(s)