Solved

Is Nothing? I wish...

Posted on 1999-01-07
4
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 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