Solved

Is Nothing? I wish...

Posted on 1999-01-07
4
143 Views
Last Modified: 2010-05-03
I need to do a comparison to see if an object is nothing (I'm parsing through a tree and I want to see if the next sibling is nothing).  Is there anything like an IsNothing() compare? How can I check to see if an object=nothing.

0
Comment
Question by:jmalcolm
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
jeffcameron earned 20 total points
ID: 1454737
if object is nothing then
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1454738
isnull()
0
 
LVL 1

Expert Comment

by:jeffcameron
ID: 1454739
i dont beleive isnull will work
0
 

Author Comment

by:jmalcolm
ID: 1454740
Jeff, very good.  I don't understand why the designers of VB chose to go with such different method of dealing with invalid types.  There's "ISNULL" "ISEMPTY" and then simply IS for the Nothing object.  That's not very intuative.  Thanks.

P.S. You are right, ISNULL won't work for nothing objects.  I've tried.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now