Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Question
Message
De
29/05/1997 10:30:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00033739
Message ID:
00034048
Vues:
42
>>>>>If I may, what is the rule for invoking forms within forms. More specificly when a form I created for the purpose of making a year choice and hitting ok is executed, the form shows up but control does not come to it but rather the next line in the program does.The rest of the app is still working correctly however.
>>>>
>>>>Make this form modal.
>>>
>>>How do you grab the value of a variable from a form and pass it back to a prior form or even one prior to that?
>>
>>1. You call modal form by
>>DO FORM ... TO retvalue
>>2. In modal form unload event you
>>RETURN retvalue
>>It's also a good idea to creat and use coustom property Form.Retvalue to handle this case.
>
>Edward,I chose your 1) method and it keeps returning .t. when I am looking for a data value not a logical.

The idea is that you should fill retvalue in modal form with some variable you want to return back. For example, Destroy event contains:
this.retvalue=this.text1.value
and Unload event:
return this.retvalue
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform