Hi Mark,
I just used the 7 MOD 0 as an example. In my routine, the MOD statement is involved in a loop, but the myvariable is always 10 so something like:
CALL example(myvariable)
myvariable = 10
SUB example(myvvvvvariable) ' Oops, this typo will make myvariable an undefined zero value in this sub!
FOR i = 1 to 10
x = i MOD myvariable
NEXT
END SUB
So when I goofed on the typo, not a bad as the example I put up here, I actually just missed a letter in mine, but anyway, same results, a zero division with MOD. It should have thrown a division by zero error, but it didn't. It just crashed the program.
Oh, I should mention that I'm NOT using $CHECKING_OFF or whatever it's called. So that isn't the issue.
I get the "Why go looking for trouble?" 100%. I'll fiddle with this more when I don't have stuff to lose, which just isn't happening anytime soon. I'm in the middle of a 8000 line program, among other website things. I just figured if I posted something now, I wouldn't forget what happened at a later date.
Pete