I have some code along the lines of the following:
redim a(1 to N)
for i = 1 to N
a(i) = someFunction(i)
Next i
When running it, I get "Run-time error 6: Overflow". And it enters break mode with the line inside the loop: a(i) = someFunction(i) highlighted. To find the error, I step into that function and step over line-by-line. There's no error, it works fine and keeps going. As long as I execute the code this way, staying in break mode & stepping in to someFunction one call at a time, it works, but as soon as I go back to normal execution, the overflow error comes back.
Does anyone know how can I get rid of the overflow?
a(i),iandsomeFunction(i)at halt? Just move a mouse cursor over variable names in VBE.Longif you are