Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Destroying an object
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Destroying an object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01423505
Message ID:
01423505
Vues:
113
I probably don't understand how to destroy an object as I am having the following problem.

I often create a property of a UI form and then instantiate an object and reference it to the property of the form. Then in UNLOAD method I set the value of this property to .NULL.. And it works.

But when I drop a class/object on a form and then try to do the same in UNLOAD method, I get error that oMyObject is a method, even, or object.

How do I destroy the object that was dropped on a form?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform