Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One Form to Another
Message
 
À
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:
00298844
Vues:
25
Hi Steve....

Not a complicated situation at all. Essentially, you need to return a value from a called form. Anytime you do this, the called form should be model. So, the whole business of looping through the form's collection with the For Each construct constitutes little more than a complete waste of time<s>.

So, here is what to do:

1. Set the WindowType Property of the note form to Modal.
2. Create a custom property on the note form called strNote
3. In the form that has the note, set the controlsource of the control you are
using to capture the note with: Thisform.strNote
4. In the Unload of the note form, issue this code: Return This.strNote


How does the code look in the first form?:. Most likely, you will have a command button to launch the form. So, you may have code like this:

Local strNote
Do Form frmNote To strNote
This.parent.txtNote.Value = strNote


Hope this helps...


>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.
>
>God Bless,
>S. Dyke
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform