[Gambas-user] Headache causing misplaced error message.

Benoît Minisini gambas at ...1...
Mon Apr 6 00:02:24 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
>

Finally fixed in revision #1924!

Regards,

-- 
Benoît




More information about the User mailing list