Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress event
Message
From
03/02/2000 12:48:28
 
 
To
03/02/2000 12:46:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00326746
Message ID:
00326765
Views:
23
Oops, sorry. Forgot to close my PRE tag. This should look a little better.

>>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
Reply
Map
View

Click here to load this message in the networking platform