Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Destroying an object
Message
 
À
26/08/1997 08:07:25
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00046886
Message ID:
00046901
Vues:
29
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform