<div dir="ltr">well same error with different behaviour, in my gambas happened as i said<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.com</a></font></div></div></div>
<br><div class="gmail_quote">2018-04-01 13:18 GMT-04:00 Michael Altrogge <span dir="ltr"><<a href="mailto:mnaltrogge@web.de" target="_blank">mnaltrogge@web.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>Â
<div>
<div>No, the error is <Division by zero> ... and is only raised if the FINALLY part is empty ...</div>
<div>Â </div>
<div>Â </div>
<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0 10px 10px;border-left:2px solid #c3d9e5;word-wrap:break-word">
<div style="margin:0 0 10px 0"><b>Gesendet:</b>Â Sonntag, 01. April 2018 um 19:08 Uhr<br>
<b>Von:</b>Â "PICCORO McKAY Lenz" <<a href="mailto:mckaygerhard@gmail.com" target="_blank">mckaygerhard@gmail.com</a>><br>
<b>An:</b>Â "Gambas Mailing List" <<a href="mailto:user@lists.gambas-basic.org" target="_blank">user@lists.gambas-basic.org</a>><br>
<b>Betreff:</b>Â Re: [Gambas-user] Behaviour FINALLY CATCH</div><div><div class="h5">
<div name="quoted-content">
<div>benoit, its a bug, if a new line with a comment are in the finally, a bug will raised</div>
<div class="gmail_extra">Â
<div>
<div class="m_-5746410648569798101gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font>
<div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.<wbr>com</a></font></div>
</div>
</div>
Â
<div class="gmail_quote">2018-04-01 12:41 GMT-04:00 Benoît Minisini <span><<a href="mailto:g4mba5@gmail.com" target="_blank">g4mba5@gmail.com</a>></span>:
<blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex"><span>Le 01/04/2018 à 18:32, Michael N. Altrogge a écrit :</span>
<blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex"><span>I have a problem while using Finally / Catch ...<br>
<br>
The finally part is ONLY executed if empty, even the entry is a comment.<br>
<br>
<br>
This will NOT work:</span><br>
<br>
/Public Function fncCheckDigit() As Integer<br>
<br>
<span>Â Â Â Â ...<br>
<br>
    intZahl= intWert1 / 0<br>
<br>
    ...<br>
<br>
Finally                    ' Aufräumen nach Fehler<br>
    'Blah blah blubb<br>
<br>
Catch                      ' Fehlerbahndlung<br>
    For Each strError In Error.Backtrace<br>
        Debug strError & gb.NewLine<br>
    Next<br>
<br>
End</span><br>
/<br>
This will work:<br>
<br>
/Public Function fncCheckDigit() As Integer<br>
<br>
<span>Â Â Â Â ...<br>
<br>
    intZahl= intWert1 / 0<br>
<br>
    ...<br>
<br>
Finally                    ' Aufräumen nach Fehler<br>
<br>
Catch                      ' Fehlerbahndlung<br>
    For Each strError In Error.Backtrace<br>
        Debug strError & gb.NewLine<br>
    Next<br>
<br>
End</span><br>
//<br>
/Is this the expected behaviour?<br>
/<br>
 </blockquote>
<br>
Sorry, I don't understand what you mean. If the FINALLY part is void, what do you expect him to do?<br>
<br>
<span class="m_-5746410648569798101HOEnZb"><font color="#888888">--<br>
Benoît Minisini<br>
<br>
------------------------------<wbr>--------------------<br>
<br>
This is the Gambas Mailing List:<br>
<a href="https://lists.gambas-basic.org/listinfo/user" target="_blank">https://lists.gambas-basic.<wbr>org/listinfo/user</a><br>
<br>
Search the list:<br>
<a href="https://lists.gambas-basic.org/cgi-bin/search.cgi" target="_blank">https://lists.gambas-basic.<wbr>org/cgi-bin/search.cgi</a><br>
<br>
Hosted by <a href="https://www.hostsharing.net" target="_blank">https://www.hostsharing.net</a></font></span></blockquote>
</div>
</div>
------------------------------<wbr>-------------------- This is the Gambas Mailing List: <a href="https://lists.gambas-basic.org/listinfo/user" target="_blank">https://lists.gambas-basic.<wbr>org/listinfo/user</a> Search the list: <a href="https://lists.gambas-basic.org/cgi-bin/search.cgi" target="_blank">https://lists.gambas-basic.<wbr>org/cgi-bin/search.cgi</a> Hosted by <a href="https://www.hostsharing.net" target="_blank">https://www.hostsharing.net</a></div>
</div></div></div>
</div>
</div></div></div>
<br><br>
------------------------------<wbr>--------------------<br>
<br>
This is the Gambas Mailing List:<br>
<a href="https://lists.gambas-basic.org/listinfo/user" rel="noreferrer" target="_blank">https://lists.gambas-basic.<wbr>org/listinfo/user</a><br>
<br>
Search the list:<br>
<a href="https://lists.gambas-basic.org/cgi-bin/search.cgi" rel="noreferrer" target="_blank">https://lists.gambas-basic.<wbr>org/cgi-bin/search.cgi</a><br>
<br>
Hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a><br>
<br></blockquote></div><br></div>