[Gambas-user] try if error

Jussi Lahtinen jussi.lahtinen at gmail.com
Tue Jun 19 22:44:23 CEST 2018


Then you couldn't use "on error goto" anyway.


Jussi

On Tue, Jun 19, 2018 at 11:41 PM, Mayost Sharon <sharon at 455.co.il> wrote:

> catch not good
> Because I want to continue on to the next line
>
> ---------- Original Message -----------
> From: Jussi Lahtinen <jussi.lahtinen at gmail.com>
> To: Gambas Mailing List <user at lists.gambas-basic.org>
> Sent: Tue, 19 Jun 2018 23:29:20 +0300
> Subject: Re: [Gambas-user] try if error
>
> > Oh, maybe you want to use Catch structure...
> > http://gambaswiki.org/wiki/lang/catch
> >
> > Jussi
> >
> > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen <
> jussi.lahtinen at gmail.com>
> > wrote:
> >
> > > I don't understand the problem.
> > >
> > > If Error Then Goto ErrorHandling
> > >
> > > ...
> > >
> > > ErrorHandling:
> > > Print "Here is my error handling"
> > >
> > >
> > > Jussi
> > >
> > >
> > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon <sharon at 455.co.il>
> wrote:
> > >
> > >> In Visual Basic
> > >> there is
> > >> on error goto 0
> > >>
> > >> ---------- Original Message -----------
> > >> From: PICCORO McKAY Lenz <mckaygerhard at gmail.com>
> > >> To: Gambas Mailing List <user at lists.gambas-basic.org>
> > >> Sent: Tue, 19 Jun 2018 16:18:06 -0400
> > >> Subject: Re: [Gambas-user] try if error
> > >>
> > >> > 2018-06-19 16:06 GMT-04:00 Mayost Sharon <sharon at 455.co.il>:
> > >> >
> > >> > > Hello
> > >> > >
> > >> > > How do I proceed to the next line
> > >> > > If there is an error
> > >> > >
> > >> > for cases when it's error format or error of invalid date just:
> > >> >
> > >> > If Date(2018, 13, 1) Then
> > >> >
> > >> > for others error might be a good question unless compared using
> Comp()
> > >> as
> > >> > strings!
> > >> >
> > >> > i dont know what other type of errors can be produced here!
> > >> >
> > >> > >
> > >> > > For example, if the date is not correct
> > >> > >
> > >> > > ' Gambas module file
> > >> > >
> > >> > > Public Sub Main()
> > >> > >
> > >> > >   Try Print Date(2018, 13, 1)
> > >> > >
> > >> > >   If Date(2018, 13, 1) Then
> > >> > >
> > >> > >   Endif
> > >> > >
> > >> > > End
> > >> > >
> > >> > > Thank you
> > >> > >
> > >> > > ----[ Gambas mailing-list is hosted by
> https://www.hostsharing.net
> > >> ]----
> > >> > >
> > >> ------- End of Original Message -------
> > >>
> > >>
> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
> ]----
> > >>
> > >
> > >
> ------- End of Original Message -------
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180619/d2eac783/attachment.html>


More information about the User mailing list