[Gambas-user] Headache causing misplaced error message.
Jussi Lahtinen
jussi.lahtinen at ...626...
Sun Apr 5 03:09:40 CEST 2009
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
More information about the User
mailing list