Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where object dropped on form is instantiated?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Where object dropped on form is instantiated?
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01450463
Message ID:
01450463
Vues:
123
Hi,

I dropped an object (class) on a form. Then in the form LOAD method I check if this object is NULL as following:
isnull( thisform.MyObject )     && Returns .F.
type( "thisform.MyObject" )   &&  Returns "O"
So I presumed that the object is instantiated in the LOAD method of the form. But when I call a method of this object in LOAD method of the form, I get error that the object does not exist. Does it mean that the object is fully instantiated only in the INIT method of the 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