Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Destroying an object
Message
 
To
26/08/1997 08:07:25
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00046886
Message ID:
00046901
Views:
32
>>How do I destroy an object created via CreateObject()?
>>
>>In VB you use: Set oMyObject = Nothing (I know, I know, VB is the evil empire but I needed an example. Please forgive me almighty Fox Gods! )
>>
>>What do I use in VFP?
>>
>>TIA
>
>oMyObject.Release or oMyObject.Destroy

Hi Matt,

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform