Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On shutdown doesn't shift focus off field
Message
From
23/04/1999 15:23:22
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00211650
Message ID:
00211682
Views:
26
I did a "doh!" when I saw Sylvains response. Simple, yet effective! And, yes, Bure is out till late in camp next year (late Sept).

>Hi John. Sylvain reccommended _screen.activeform.activecontrol.setfocus Strangely enough this works.
>
>Thanks for your help.
>
>P.S. Bure is out injured again I hear.
>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform