<div dir="ltr">On error goto 0 <div>after an instruction <br><div><br></div><div>is the same as just :</div><div><br></div><div>Try Print Date(2018, 13, 1)<br></div><div><br></div><div>The error is skiped</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le mar. 19 juin 2018 à 22:30, Jussi Lahtinen <<a href="mailto:jussi.lahtinen@gmail.com">jussi.lahtinen@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Oh, maybe you want to use Catch structure...</div><div><a href="http://gambaswiki.org/wiki/lang/catch" target="_blank">http://gambaswiki.org/wiki/lang/catch</a><br></div><div><br></div><div><br></div><div>Jussi<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen <span dir="ltr"><<a href="mailto:jussi.lahtinen@gmail.com" target="_blank">jussi.lahtinen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I don't understand the problem.</div><div><br></div><div>If Error Then Goto ErrorHandling<br></div><div><br></div><div>...<br></div><div><br></div><div>ErrorHandling:</div><div>Print "Here is my error handling"</div><span class="m_5885193975723378273HOEnZb"><font color="#888888"><div></div><div><br></div><div><br></div><div>Jussi<br></div><div><br></div></font></span></div><div class="m_5885193975723378273HOEnZb"><div class="m_5885193975723378273h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon <span dir="ltr"><<a href="mailto:sharon@455.co.il" target="_blank">sharon@455.co.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In Visual Basic<br>
there is<br>
on error goto 0<br>
<span class="m_5885193975723378273m_5483536861135599473im m_5885193975723378273m_5483536861135599473HOEnZb"><br>
---------- Original Message -----------<br>
From: PICCORO McKAY Lenz <<a href="mailto:mckaygerhard@gmail.com" target="_blank">mckaygerhard@gmail.com</a>><br>
To: Gambas Mailing List <<a href="mailto:user@lists.gambas-basic.org" target="_blank">user@lists.gambas-basic.org</a>><br>
</span><span class="m_5885193975723378273m_5483536861135599473im m_5885193975723378273m_5483536861135599473HOEnZb">Sent: Tue, 19 Jun 2018 16:18:06 -0400<br>
Subject: Re: [Gambas-user] try if error<br>
<br>
</span><div class="m_5885193975723378273m_5483536861135599473HOEnZb"><div class="m_5885193975723378273m_5483536861135599473h5">> 2018-06-19 16:06 GMT-04:00 Mayost Sharon <<a href="mailto:sharon@455.co.il" target="_blank">sharon@455.co.il</a>>:<br>
> <br>
> > Hello<br>
> ><br>
> > How do I proceed to the next line<br>
> > If there is an error<br>
> ><br>
> for cases when it's error format or error of invalid date just:<br>
> <br>
> If Date(2018, 13, 1) Then<br>
> <br>
> for others error might be a good question unless compared using Comp() as<br>
> strings!<br>
> <br>
> i dont know what other type of errors can be produced here!<br>
> <br>
> ><br>
> > For example, if the date is not correct<br>
> ><br>
> > ' Gambas module file<br>
> ><br>
> > Public Sub Main()<br>
> ><br>
> > Try Print Date(2018, 13, 1)<br>
> ><br>
> > If Date(2018, 13, 1) Then<br>
> ><br>
> > Endif<br>
> ><br>
> > End<br>
> ><br>
> > Thank you<br>
> ><br>
> > ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
> ><br>
</div></div><span class="m_5885193975723378273m_5483536861135599473im m_5885193975723378273m_5483536861135599473HOEnZb">------- End of Original Message -------<br>
<br>
<br>
</span><div class="m_5885193975723378273m_5483536861135599473HOEnZb"><div class="m_5885193975723378273m_5483536861135599473h5">----[ 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></div></blockquote></div><br></div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Fabien Bodard </div>