Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array probs
#5
now i'm having a prob with a dimention error.
so here's what i'm thinking this does.
it creates a virtual spreadsheet with 3 columns (0,1, and 2) with as many rows as there are lines in str b (which is equal to z). then parses out one line at a time and a certian number of characters putting them into each of the 3 columns then moving down a row.

is that correct?


Code:
Copy      Help
z=numlines(b)
ARRAY(str) e.create(z z z)
foreach(c b)
,if(!c.len)continue
,for y 0 z
,,d.get(c 2 19)
,,d.trim(" ")
,,e[y 1]=d
,,d.get(c 22 55)
,,d.trim(" ")
,,e[y 2]=d
,,d.get(c 82 45)
,,d.trim(" ")
,,e[y 3]=d


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)