<div dir="ltr"><div>Then you couldn't use "on error goto" anyway.</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:41 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">catch not good<br>
Because I want to continue on to the next line<br>
<span class="im HOEnZb"><br>
---------- Original Message -----------<br>
From: Jussi Lahtinen <<a href="mailto:jussi.lahtinen@gmail.com">jussi.lahtinen@gmail.com</a>><br>
To: Gambas Mailing List <<a href="mailto:user@lists.gambas-basic.org">user@lists.gambas-basic.org</a>><br>
</span><div class="HOEnZb"><div class="h5">Sent: Tue, 19 Jun 2018 23:29:20 +0300<br>
Subject: Re: [Gambas-user] try if error<br>
<br>
> Oh, maybe you want to use Catch structure...<br>
> <a href="http://gambaswiki.org/wiki/lang/catch" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/<wbr>lang/catch</a><br>
> <br>
> Jussi<br>
> <br>
> On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen <<a href="mailto:jussi.lahtinen@gmail.com">jussi.lahtinen@gmail.com</a>><br>
> wrote:<br>
> <br>
> > I don't understand the problem.<br>
> ><br>
> > If Error Then Goto ErrorHandling<br>
> ><br>
> > ...<br>
> ><br>
> > ErrorHandling:<br>
> > Print "Here is my error handling"<br>
> ><br>
> ><br>
> > Jussi<br>
> ><br>
> ><br>
> > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon <<a href="mailto:sharon@455.co.il">sharon@455.co.il</a>> wrote:<br>
> ><br>
> >> In Visual Basic<br>
> >> there is<br>
> >> on error goto 0<br>
> >><br>
> >> ---------- Original Message -----------<br>
> >> From: PICCORO McKAY Lenz <<a href="mailto:mckaygerhard@gmail.com">mckaygerhard@gmail.com</a>><br>
> >> To: Gambas Mailing List <<a href="mailto:user@lists.gambas-basic.org">user@lists.gambas-basic.org</a>><br>
> >> Sent: Tue, 19 Jun 2018 16:18:06 -0400<br>
> >> Subject: Re: [Gambas-user] try if error<br>
> >><br>
> >> > 2018-06-19 16:06 GMT-04:00 Mayost Sharon <<a href="mailto:sharon@455.co.il">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()<br>
> >> 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>
> >> > ><br>
> >> ------- End of Original Message -------<br>
> >><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>
> ><br>
> ><br>
------- End of Original Message -------<br>
<br>
<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>