Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On shutdown doesn't shift focus off field
Message
De
23/04/1999 14:48:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00211650
Message ID:
00211652
Vues:
19
Check the Value versus the ControlSource for the current control. If different, do a REPLACE controlsource with value and that should trigger GETFLDSTATE or whatever else you are using.

This is a similar issue to the problems of hitting Save on a toolbar wasn't saving changes in the current control because focus was not formally lost.


>I have an "on shutdown" routine that cycles through all forms and attempts to close them. If a form detects uncommitted changes to any data, it prompts the user if they will like to save or discharge them.
>
>The problem is that if the user is still in a textbox where changes have made but then they click the upper right "X" (to shutdown the app). The focus isn't taken off the textbox so the buffer doesn't know about the change in the contents of the textbox. How can I shift the focus off the textbox or force the changes into the buffer?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform