Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing Objects...IDEAS?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00167801
Message ID:
00168179
Views:
29
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform