Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Big problem with the F10 key in modeless forms
Message
De
28/02/2008 13:37:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01297399
Message ID:
01297491
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform