Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress event
Message
From
03/02/2000 12:46:35
 
 
To
03/02/2000 12:34:26
Liz Erdman
Wausau Financial Systems
Mosinee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00326746
Message ID:
00326762
Views:
18
>I have a data entry form that allows a user to skip ahead to the next image/record. How do I create a keypress event that will allow the user to hit the F1 instead of having to either click the NEXT button on the screen or hitting ALT+N?

Hi Liz,

1) I personally don;t think it's a good idea to use F1 for that since that is recognized as the standard Help key.

2) Identify the event(s) you want the Next record functionality to be fired from.

3) In that event, the code would look something like


IF nKeycode = 28 && For F1 key
* Do you code here
ENDIF

4) If this will occur in more than one event, you can put the record skipping code in a user defined method of the form and call the method from the code above.

5) You can find various nKeyCode values in the help under "INKEY()"

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform