Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with KeyPress
Message
From
12/12/2000 14:36:10
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00452358
Message ID:
00452434
Views:
27
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform