Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My Name Is...
Message
From
10/03/2004 13:47:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00884791
Message ID:
00884923
Views:
13
David, this is a plain vanilla VFP class. I created a class I called bizDataManager and in code I instantiated an instance of it by doing:

SET CLASSLIB TO bizObjsLib.vcx
oPrimeKeys = CREATEOBJECT('bizDataManager')

In the Init event of bizDataManager I have code that 'registers' the object with another object called oODBCManager so that when the oODBCManager object gets released then all data manager objects registered with it will be released in its Destroy event. That way I don't have any little orphans running around looking for their mamas and daddies trying to do whatever...

All that being said, I now realize that I can pass a parameter in the CREATEOBJECT() command that names the new instance of the bizDataManager so it can do a THIS.Name = m.tcInstanceName and then go ahead and do the registration routine with the oODBCManager object. But it seems to me that this should be available already with the instance. Guess not. I'll keep looking but this work around should do the trick.

Jim
Time is a wonderful teacher. Unfortunately it kills all of its students.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform