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:
00298114
Vues:
23
>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

Steven, it depends on many factors.
If your note goes to the table field it depends then on how you set up the textbox.ControlSource (is it a table field or a view field, which type of buffering is selected...) In general, you should put in some code which on Form.Activate makes sure that the textbox.value contains the latest change.
Depending on how you do things, it may be simple .Refresh(), or CURVAL("myField"), or view REQUERY() (in this case if you have multiple records in the view, you also need to move the record pointer to the same record after REQUERY()).

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform