Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My Name Is...
Message
De
10/03/2004 13:47:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00884791
Message ID:
00884923
Vues:
14
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform