Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One Form to Another
Message
De
02/12/1999 20:44:25
 
 
À
02/12/1999 14:10:22
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00298054
Message ID:
00298242
Vues:
17
>I have two forms open at one time. I type in a note on the one form and close it. How can I get a text box on the remaining form to populate with the note I typed in on the form I closed. Thanks.

The best way is to provide some kind of communication link between the forms. In simplified case (if the second form is modal and called from the first one) you may just return value (note) back. Also, you can pass parameter to the calling form. In more common case, when you have two modeless forms, you may force the second form (in some method) to look for the first one and call some method there, e.g.
For Each oForm in _Screen.Forms
 If oForm.Name=="MYFIRSTFORM"  && form found
   oForm.Mymethod   && do something there, e.g. cnahge textbox value
 Endif
Endfor
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform