[Gambas-user] try if error
PICCORO McKAY Lenz
mckaygerhard at gmail.com
Tue Jun 19 22:18:06 CEST 2018
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 ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180619/6e0187db/attachment.html>
More information about the User
mailing list