Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Reference Count

Status
Not open for further replies.

LegoPiece

Programmer
Mar 19, 2001
95
US
Hi Everybody!

What's the best way that I can obtain the value which corresponds to the number of times an object has been instantiated from WITHIN a created object itself (like a static member variable)????

Any help would be greatly appreciated!
Thanks!
LeGo PiEcE

"The Computer Spock! Destroy it!" - Captain James T. Kirk
 
Create a .BAS module
Dim mlngStaticCount
Class_Initialize()
mlngStaticCount = mlngStaticCount + 1
End Sub
Class_Terminate Sub()
mlngStaticCount = mlngStaticCount - 1
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top