Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Destroying an object
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00046886
Message ID:
00046990
Views:
27
> The Release method only exists for Forms (maybe toolbars!). Codebook added custom Release methods to all it's base classes to provide consistency. Also, I don't think you should use oMyObject.Destroy. Destroy is an event, not a method so it is not normally called directly. I don't know of any side-effects but you never know.
>
>BFN
>Darrel

Darrel,

Calling the destroy event of an object will do no harm to anything, but it will not destory the object either. The call will simply run any code in that method. Try putting up a form and then from teh command window call its destroy, nothing seems to happen unless you put code in the destroy, in that case your code runs but the fomr does NOT get destroyed. The destroy is an event method that is automatically fired durng the destruction of the object, it does not cause the destruction.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform