Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Object skips Thisform.Release()
Message
From
11/06/2003 01:34:09
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00798705
Message ID:
00798759
Views:
38
>Bill,
>
>Where/what is SetObjRef.prg?
>
>>How is this different than the oHost property/object in SetObjRef.prg? It's storing a reference to the form on the object inside the form. But there isn't any special handling of the object at the form level.

It's used by all the classes in _base.vcx.
Home() + '\FFC\SetObjRef.prg'
All the _base.vcx classes have a SetObjRef() method that "DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)"

SetObjRef.prg
LPARAMETERS toObject,tcName,tvClass,tvClassLibrary
&& oHost is a reference to the form
IF PEMSTATUS(oObject,"oHost",5)
oObject.oHost=toObject.oHost
ELSE
oObject.ADDPROPERTY("oHost",toObject.oHost)
ENDIF
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform