[Gambas-user] how to determine if array its empty
Gianluigi
bagonergi at ...626...
Sat Jul 1 12:13:15 CEST 2017
or
If IsNull(myArray) Or If myArray.Count = 0 Then Print "Empty"
Regards
Gianluigi
2017-07-01 12:09 GMT+02:00 Gianluigi <bagonergi at ...626...>:
> Dim myArray As String[]
>
> If IsNull(myArray) Then Print "Empty"
>
> Regards
> Gianluigi
>
> 2017-07-01 11:33 GMT+02:00 PICCORO McKAY Lenz <mckaygerhard at ...626...>:
>
>> i have
>>
>> Dim ar As New Variant[]
>>
>> so how can i determine if the array its empty, i mean does not added any
>> element.. due that piece of code fails:
>>
>> If value.dim > 0 Then
>>
>> If value.count > 0 Then
>>
>> with a index out of bound exception
>>
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com
>> ------------------------------------------------------------
>> ------------------
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
More information about the User
mailing list