Re: Problem with mydata.ex
- Posted by ChrisB (moderator) Feb 21, 2010
- 1066 views
Hi
In line 86 the for loop is counting through the number of FIELDS, which has already been defined at the top of the program.
The number of items in the data variable is less than the number of items in the FIELDS variable.
The loop continues counting the FIELDS items, but exceeds the number of data items, hence throwingthe variable.
Cursorally (?) the correct way would be
for i = 2 to length(data) do puts(f, '\t' & data[i-1] & '\n') end for
However, this is only a very cursory look, and this may still not fit your requirements.
Chris