[Gambas-user] try if error

Mayost Sharon sharon at 455.co.il
Tue Jun 19 22:19:46 CEST 2018


Sorry
I did not explain well

I want to skip the line of IF DATE ()
If there is an error


' Gambas module file

Public Sub Main()
  
  If Date(2018, 13, 1) Then
    If Error Then
      Print "Date Error"
    Endif
  Endif
  
End


---------- 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:12:37 +0300
Subject: Re: [Gambas-user] try if error

> If Error Then
> 
> Jussi
> 
> On Tue, Jun 19, 2018 at 11:06 PM, Mayost Sharon <sharon at 455.co.il> wrote:
> 
> > Hello
> >
> > How do I proceed to the next line
> > If there is an error
> >
> > 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 -------



More information about the User mailing list