How to determine if

Results 1 to 2 of 2

Thread: How to determine if

  1. #1
    Andrew Sinning Guest

    Default How to determine if

    After closing a connection objCon, objCon is set to nothing:<BR><BR>set objCon = nothing<BR><BR>In my script library, i have a sub called "OpenObjCon". It needs to be able to confirm that objCon isn&#039;t alread open before openning it. But I can&#039;t figure out how to tell if objCon = nothing.<BR><BR>After setting objCon = nothing, I get<BR><BR>isObject(objCon) = TRUE<BR>isNull(objCon) = FALSE<BR>isEmpty(objCon) = FALSE<BR><BR>Even worse, testing:<BR><BR> if (objCon = nothing) then... <BR><BR>gives the error "Object variable not set"<BR><BR>So, what&#039;s a guy to do? How do I make sure that there isn&#039;t an existing objCon before creating a new one.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: How to determine if

    Check out typeof()

Posting Permissions

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