R
Rob Meade
Hi all,
I have some code which compares values in a recordset to that in an array.
If it finds a match it needs to remove the item from the array.
My concern is that my method for removing the item from the array is by
iterating through it, if it doesn't match then I place the value into a
"temporary" array, after all comparisions are completed I then set the
original array to equal the temporary array.
Am I likely to generate an error if my internal looping of the same array
changes the array size, whilst still iterating through it..
eg..
For x = 0 to ....
if comparision is true then
for y = 0 to ....
if comparision is false then
' add value to temporary array here
end if
next
array = temporary array
end if
Next
My feeling is that this will go mammories up...
Regards
Rob
I have some code which compares values in a recordset to that in an array.
If it finds a match it needs to remove the item from the array.
My concern is that my method for removing the item from the array is by
iterating through it, if it doesn't match then I place the value into a
"temporary" array, after all comparisions are completed I then set the
original array to equal the temporary array.
Am I likely to generate an error if my internal looping of the same array
changes the array size, whilst still iterating through it..
eg..
For x = 0 to ....
if comparision is true then
for y = 0 to ....
if comparision is false then
' add value to temporary array here
end if
next
array = temporary array
end if
Next
My feeling is that this will go mammories up...
Regards
Rob