Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing form object to another form
Message
 
 
À
25/01/2011 05:53:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01497269
Message ID:
01497341
Vues:
53
>>Hi,
>>
>>I am troubleshooting the following issue.
>>Form B is called from form A. And the reference to the form object A is passed to form B. The references is stored in a property of form B (e.g. thisform.obj_formA)
>>Then in form B in the QueryUnload method a method of form A is called (thisform.method_a). The user gets error ALIAS NOT FOUND.
>>My question is, when the method of form A is called from form B and that method has THISFORM code, does VFP see it as the THISFORM of form A or form B?
>
>Thisform and This always refer to the object in which the code resides, i.e. in which it was written (in the object itself, or upstream in its class ladder).

Thank you.
"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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform