Hi Cristiano,

Or If is only evaluated if *not* IsNull.

Regards
Gianluigi

2017-07-01 14:08 GMT+02:00 Cristiano Guadagnino <crigu...@gmail.com>:

> Hi Gianluigi!
>
> On Sat, Jul 1, 2017 at 12:13 PM, Gianluigi <bagone...@gmail.com> wrote:
>
> > or
> > If IsNull(myArray) Or If myArray.Count = 0 Then Print "Empty"
> >
>
> I have not tried, but I don't think this will work. In an "or" expression
> you have to evaluate both members, so if myArray is null the "myArray.Count
> = 0" part will generate an out of bounds error.
>
> Cris
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to