Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing Objects...IDEAS?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00167801
Message ID:
00168179
Vues:
22
Terry ,

>I hadn't thought of that! I figured the Forms collection was only readonly

You are right.
I give a wrong track. Not really thinking about It Sorry
In my app I am using a form collection.

But i think you are able to do the fool.

=CREATEOBJECT('MyForm')

Add a property called cObjRef in the form

1) In the Init code of the form you add.
PUBLIC MyUniqueVar
MyUniqueVar = THIS <--- That's your form reference
THIS.cObjRef = MyUniqueVarName <--- Character not object

2) In the destroy of the form you add

MyUniqueVarName = THIS.MyUniqueVarName
RELEASE &MyUniqueVarName.

Maybe you can also try to ref the object to himself with
THISFORM.oMyRef = THIS in the init

THISFORM.oMyRef = .NULL. in the destroy

I don't test it.

or you are also able to use a application framework
CODEBOOK is shareware or the VFP6 FFC
Both have form collections


>Joe Kaufman
>jkaufman@encompas.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform