lmf232s
01-19-2005, 10:01 AM
Hey guys, i have a loop that loops 92 times give or take.
With in this loop i use about 9 arrays to hold data.
at the end of each record, i have to empty all the arrays
so that they do not keep that data and use it for the next record.
I am looking for a better way to clear out the arrays as i think this
is inefficient.
This is what i currently do
For i = 1 to 12
MyArray1(i) = ""
MyArray2(i) = ""
MyArray3(i) = ""
MyArray4(i) = ""
etc.
next
I do this for all 9 arrays.
that means that this for loop, loops 1104 times in total.
Whats a better way to do this.
With in this loop i use about 9 arrays to hold data.
at the end of each record, i have to empty all the arrays
so that they do not keep that data and use it for the next record.
I am looking for a better way to clear out the arrays as i think this
is inefficient.
This is what i currently do
For i = 1 to 12
MyArray1(i) = ""
MyArray2(i) = ""
MyArray3(i) = ""
MyArray4(i) = ""
etc.
next
I do this for all 9 arrays.
that means that this for loop, loops 1104 times in total.
Whats a better way to do this.