<html><head></head><body><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; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<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" <mckaygerhard@gmail.com><br/>
<b>An:</b> "Gambas Mailing List" <user@lists.gambas-basic.org><br/>
<b>Betreff:</b> Re: [Gambas-user] Behaviour FINALLY CATCH</div>

<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="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>
 

<div class="gmail_quote">2018-04-01 12:41 GMT-04:00 Benoît Minisini <span><<a href="mailto:g4mba5@gmail.com" onclick="parent.window.location.href='g4mba5@gmail.com'; return false;" 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="HOEnZb"><font color="#888888">--<br/>
Benoît Minisini<br/>
<br/>
--------------------------------------------------<br/>
<br/>
This is the Gambas Mailing List:<br/>
<a href="https://lists.gambas-basic.org/listinfo/user" target="_blank">https://lists.gambas-basic.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.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>
-------------------------------------------------- This is the Gambas Mailing List: <a href="https://lists.gambas-basic.org/listinfo/user" target="_blank">https://lists.gambas-basic.org/listinfo/user</a> Search the list: <a href="https://lists.gambas-basic.org/cgi-bin/search.cgi" target="_blank">https://lists.gambas-basic.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></body></html>