Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] csv - v.toarray problem
#6
replace
out a[r c]
to
out a[c r]

In 2-dim arrays, the last dimension usually is for rows.
I'll add this note to ToArray help.

Macro Macro2209
Code:
Copy      Help
out
str s ss
s=
;line1
;line2
;line3
;line4

s.setfile("$temp qm$\test.csv")
ICsv v._create
v.FromFile("$temp qm$\test.csv")


ARRAY(str) a
v.ToArray(a)

int r c
for r 0 a.len
,;out "--- row %i ---" r
,for c 0 a.len(1)
,,out a[c r]
;or
for r 0 a.len
,out a[0 r]


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)