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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Reference Counting

Status
Not open for further replies.

LegoPiece

Programmer
Mar 19, 2001
95
US
In my class_initialize method of a class module, is there any way I can assign to a variable, the instance number of that object? i.e. When the object is created, it knows that its been created four times previous to its current instantiation, using the Static keyword???

Much Appreciated
Peace
Lego

"I don't think we have the right or the wisdom to interfere with an alien tribe no matter how it's evolving!" - Captain James T. Kirk

"Your people must embrace these words and the words that follow, for their true meanings are..." - Captain James T. Kirk (same episode)
 
Bummer - but I'll live. The objective was to have the object name itself, based on its instantiation e.g. "box1", "box2", "box3" etc. These objects are created dynamically in a loop, whose iterations are user-specified. I guess there are other ways to make this elegant.

As always John, thanks for your help bro
Lego Peace
Lego

"Quitting smoking is easy - I've done it a thousand times!" - Mark Twain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top