I have a VB5 program that read a large, comma-delimited file using the input # command. For example:
for i = 1 to 12: input #1, S$(i): next
There are about 80 arrays of the above size, most of which are numeric.
After each line I redimension all the arrays.
Problem is that after x number of lines have been read I will find that an element of the array that should be null (i.e. nothing between 2 commas) contains something that looks like it came from some previous input. It's as if I have not cleared the arrays (although I have).
This code worked fine in Microsoft BASIC, but doesn't seem to in VB. Is there some type of memory or storage issue going on here? I don't know.
Thank You
for i = 1 to 12: input #1, S$(i): next
There are about 80 arrays of the above size, most of which are numeric.
After each line I redimension all the arrays.
Problem is that after x number of lines have been read I will find that an element of the array that should be null (i.e. nothing between 2 commas) contains something that looks like it came from some previous input. It's as if I have not cleared the arrays (although I have).
This code worked fine in Microsoft BASIC, but doesn't seem to in VB. Is there some type of memory or storage issue going on here? I don't know.
Thank You