Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning values from modal form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00333036
Message ID:
00333055
Vues:
14
>
>Could you show the code in the calling form that calls the modal form and the code in the called modal form Init that receives the passed value(s) and stores it in the modal form?

Sure:

Calling form's click():
DO FORM forms\calendar_test.scx with 'test_form'


Modal form code-
Init:
LPARAMETER toFormThatCalledMe
ThisForm.Caller = toFormThatCalledMe

ExitButton.Click()
ThisForm.caller.lddate= ThisForm.Cntcalendar1.dcaldate
thisform.release()

The error comes in the "ThisForm.caller.lddate = bla bla" line. Error is that Unknown member Caller.

Hitting suspend, I can see that caller has value, and it is the calling form.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform