Here's a short example that forces an array overflow:
Code: Select all
on error goto bad
dim a(10) as integer
dim x as integer
x = 11
a(x) = 4
end
bad:
print "error (#, line)", err, erl
sleep(50000)
It correctly identifies line 6 as the source of the error, but says the error code is 0 (no error) when it should say 6.error (#, line) 0 6
I feel like I'm making some silly mistake.