Results 1 to 2 of 2

Thread: isempty alternative? [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member d2005's Avatar
    Join Date
    Aug 2005
    Location
    ireland
    Posts
    620

    isempty alternative? [RESOLVED]

    if isempty(blabla) then
    ......
    .....

    is empty is not defined
    isempty gives me an error in vb.net code
    is there any alternatives available
    Last edited by d2005; Sep 19th, 2005 at 04:26 AM. Reason: [RESOLVED]
    it works 60% of the time, all the time.

  2. #2

    Thread Starter
    Fanatic Member d2005's Avatar
    Join Date
    Aug 2005
    Location
    ireland
    Posts
    620

    Re: isempty alternative?

    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
    it works 60% of the time, all the time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width