Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with KeyPress
Message
De
12/12/2000 14:36:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00452358
Message ID:
00452434
Vues:
28
>I'd like to have a KEY that simulate the bottom... I don't know how can I do this...

I would do it this way, remove the code in your KeyPress(), and then set the "Default" property of the Save button to .T. Now, instead of F8, have your users press Enter to hit the Save button. This will fire both Valids like you want.

Otherwise, if you want to keep F8, change your KeyPress() code to this:
If nKeyCode = -7 && F8
	ThisForm.Save.SetFocus()
	ThisForm.Save.Valid()
EndIf
So focus moves and the Textbox's Valid() will fire
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform