CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2001
    Posts
    9

    Testing an object variable...

    How to validate if an object variable has been instanciated ? (Value different form Nothing)


  2. #2
    Join Date
    May 2001
    Location
    Canada
    Posts
    182

    Re: Testing an object variable...


    Private obj As Object

    Private Sub CheckObject()

    If obj Is Nothing Then
    MsgBox "Nothing"
    Else
    MsgBox "Something"
    End If

    End Sub

    Regards,

    Michi

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

Featured