<div dir="ltr">2018-08-02 10:32 GMT-04:00 T Lee Davidson <span dir="ltr"><<a href="mailto:t.lee.davidson@gmail.com" target="_blank">t.lee.davidson@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is no such thing as a "try-catch" in Gambas. CATCH is *not* used with TRY.<br>

Tobi gave a good example:<br></blockquote><div>i see it and that's why i point "there's no such information on the wiki"<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes! CATCH is *not* used with TRY. TRY does not open an exception handling block as with other languages (eg. Python's<br>
"try-except"). It is a statement that affects the behavior of only the *line* which it begins.<br>
<br>
When using TRY, you test for an error condition with the ERROR keyword. If you do not, then the error is not revealed, and the<br>
program would continue merrily along under a potentially false assumption. If you want to use CATCH, then do not use TRY.<br></blockquote><div>well i comming from java and C and its common ofr us use try/cacht as duple<br><br></div><div>anyway! there's not similar info in the wiki that produces a waste of time for novices !<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
___<br>
<span class="HOEnZb"><font color="#888888">Lee<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</div></div></blockquote></div><br></div></div>