Hi! Here is very simplified example of the bug I found (Gambas 2.10 and Gambas3 rev. 1917). >From that you can easily see what is wrong, but in real life code... This bug seems to be generally in "else if", error doesn't have to be division by zero, it could be any. And there could be many lines of "else if", still the error message goes to the first line.
Dim x As Integer If x = -1 Then '<--- YOU GOT ERROR MESSAGE FROM THIS LINE. 'nothing Else If 1 / 0 Then 'nothing Endif Regards, Jussi ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user