Re: Problem with mydata.ex

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu