[Gambas-user] how to determine if array its empty
Cristiano Guadagnino
criguada at ...626...
Sat Jul 1 14:08:25 CEST 2017
Hi Gianluigi!
On Sat, Jul 1, 2017 at 12:13 PM, Gianluigi <bagonergi at ...626...> 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
More information about the User
mailing list