General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only