Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programming function keys
Message
 
To
11/10/1997 05:38:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00052580
Message ID:
00054167
Views:
28
>> * Form KeyPress
>> LPARAMETERS nKeyCode, nShiftAltCtrl
>> DO CASE
>> CASE nKeyCode = -1 && F2
>> NODEFAULT
>> THISFORM.AddNew()
>> CASE nKeyCode = -3 && F4
>> NODEFAULT
>> THISFORM.DelRec()
>> CASE nKeyCode = -4 && F5
>> NODEFAULT
>> THISFORM.GoPrevious()
>> CASE nKeyCode = -5 && F6
>> NODEFAULT
>> THISFORM.GoNext()
>> CASE nKeyCode = -6 && F7
>> NODEFAULT
>> THISFORM.GoBottom()
>> CASE nKeyCode = -7 && F8
>> NODEFAULT
>> THISFORM.GoTop()
>> ENDCASE

Marc,

The above code assumes that your form class has the methods that are being called, like GoTop and the such. If the fomr doesn;t have those methods then you have to write the code so it works in your form.
Previous
Reply
Map
View

Click here to load this message in the networking platform