Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Big problem with the F10 key in modeless forms
Message
 
To
28/02/2008 13:37:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01297399
Message ID:
01297550
Views:
15
>>For about 20 years we have used the F10 key as the Save Data key in all our programs. When VFP came along the F10 was used by windows as the menu key. We got around that by:
ON KEY LABEL F10 KEYBOARD '{F9}'
and that has worked fine for almost 10 years. Now we have a new problem. I found that if a window is Modeless that hitting the F10 key wipes out any data entered in the current text box, edit box, etc.
>>
>>We set focus to another object before the save so I know that's not it. In fact everything works just fine until I just change a form from Modal to Modeless. This is a big problem for us because there are hundreds of users around the country that will be screaming at us if we change the save key from F10 to say F9 which is the only thing that we can come up with.
>>
>>Can anyone save us from the Angry Hoard?
>
>Horde, not hoard, I imagine. <g>
>
>Try putting the textbox.Value into the Watch window and setting a breakpoint to see what's clearing it out.
>
>Tamar

Tamar,
I tried your idea with the breakpoint but in this case it will not work because each time I type something into the edit box the value changes, the breakpoint fires, the edit box loses focus and the data is written to the cursor.
I tried a wait window with the value in both the Valid and LostFocus and it is empty in both of them after the F10. I can only assume that something in the system is the culprit so we are going to change the save to F9.
Thanks for help.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform