Checking to see if Instance Exists

  • Thread starter Thread starter twick10
  • Start date Start date
T

twick10

I know this is probably a very basic question.

Can someone tell me the syntax to check to see if an instance of an object
exists?

I want to:
If (does this instance exist) Then
.......
.......
End If
 
* "twick10 said:
I know this is probably a very basic question.

Can someone tell me the syntax to check to see if an instance of an object
exists?

I want to:
If (does this instance exist) Then

Add a shared property to your class that returns a Boolean. Inside the
class, you can maintain a counter that counts the instances of the
class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top