Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

IsNothing in VB4

Posted on 1998-11-08
1
Medium Priority
?
294 Views
Last Modified: 2013-11-25
Hello,
Is there any way to check if an object was set to nothing
in VB4 (something like IsNothing) ?

Thank you.
0
Comment
Question by:sas11
1 Comment
 
LVL 2

Accepted Solution

by:
schild earned 200 total points
ID: 1443873
Try this:

Private Sub Command1_Click()

    Dim x As Object
   
    Debug.Print TypeName(x)
    Set x = Form1
    Debug.Print TypeName(x)

End Sub


Good Luck
Schild
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question