Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release Property
Message
 
 
To
21/12/1999 11:18:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00306719
Message ID:
00306734
Views:
30
>Hi,
> I have a property of myclass that store the reference of an object. How to RELEASE the property? I try myclass.oObjRef = .NULL.
>does it RELEASE the object?
>
>Thank you

oObject.cProperty = .null. should work. Yes, this realease the object as well. You might want to explicitly release the object first then clear the value of the property.

oObjectReferredTo.Release && if it has a release method
oObject.cProperty = .null.

or

Release oObectReferredTo
oObject.cProperty = .null.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform