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.