[Gambas-user] how to determine if array its empty
Hans Lehmann
hans at ...3219...
Sat Jul 1 16:15:24 CEST 2017
Case 1:
Dim myArray As String[] --> Array not exist.
Case 2:
Dim myArray As New String[] --> Array ist empty.
Case 3:
Dim myArray As New String[] --> Array is not empty!
myArray.Add("Value")
If Not IsNull(myArray) Then
If myArray.Count = 0 Then
Print "Array ist empty."
Else
Print "Array is not empty!"
Endif
Else
Print "Array not exist."
Endif
Hans
More information about the User
mailing list