Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array probs
#6
If it is array of two dimensions, then create must have two arguments, not three. First argument is the number of elements in first dimension, second argument is the number of elements in second dimension (can be 0 if later you will use redim).

Code:
Copy      Help
str b.getmacro("WinTypes")
str c d
int y z

z=numlines(b)
ARRAY(str) e.create(3 z) ;;3 columns, z rows
foreach(c b)
,if(!c.len)continue
,d.get(c 2 19)
,d.trim(" ")
,e[0 y]=d
,d.get(c 22 55)
,d.trim(" ")
,e[1 y]=d
,d.get(c 82 45)
,d.trim(" ")
,e[2 y]=d
,y+1

int i
for i 0 e.len
,out "''%s'' ''%s'' ''%s''" e[0 i] e[1 i] e[2 1]
,


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)