PDA

Click to See Complete Forum and Search --> : isempty alternative? [RESOLVED]


d2005
Sep 19th, 2005, 04:05 AM
if isempty(blabla) then
......
.....

is empty is not defined
isempty gives me an error in vb.net code
is there any alternatives available

d2005
Sep 19th, 2005, 04:24 AM
ok found this in threads seems to work a treat

Private Function IsEmpty(ByVal arr As System.Array) As Boolean
Try
Dim n As Integer = UBound(arr)
Catch ex As Exception
IsEmpty = True
End Try
End Function