Solved

Quick Question

Posted on 2002-06-12
2
133 Views
Last Modified: 2011-04-14
I have a class that I havent set to 'new' yet.

how do I check if the class is empty?

if not myclass = nothing.....

this doesnt work....

Ive tried vbnull...isNull...isEmpty...

nothing works

Please help

knoxx
0
Comment
Question by:JohnnyKnoxville
2 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 50 total points
ID: 7074265
you were close:

If MyClass IS Nothing then
  ' class does not yet exist (it has been declared, but NOT instantiated
Else
  ' class DOES exist - has been declared, AND an Instance has been created
End If

Artur Wood
0
 

Author Comment

by:JohnnyKnoxville
ID: 7076210
ohhh what was i thinking?   Thanks :)


knoxx
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

831 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