Message 1 of 1
How do I determine if an object does not exist?

Not applicable
12-22-2014
12:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have optional variables but no way of determining if a variable was passed. I tried to use Public Sub DoSomething(optional oPart as ComponentOccurrence) if oPart Is Nothing Then ...... I get errors saying I can't do that and that Is Nothing doesn't work for that variable. How else would I do such a thing.