Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
F10 key not working
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00726405
Message ID:
00726443
Views:
14
Try to stay away from F1 and F10 for special tasks in the program. F1 is always Help key, F10 I believe is used by VFP internally...

>Since forever, I've designated the F10 key as to abort all changes on a form. Now all of a sudden, it has no function at all(nkeycode being equal to -9) and I can't figure out what I did to cause this. my code in keypress was following
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>*do quickmsg with str(nkeycode)
>*on key label F7 do quiktask
>*on key label F11 do remarks2
>
>
>ON KEY LABEL F1
>
>if nkeycode=-9 && abort
>*do quickmsg with 'F10'
>release thisform
>endi
>
>if nkeycode=-4 &&F5 credcard
> *ACTI SCREEN
> do quikcred0
>endi
>
>if nkeycode=138 && cntl+F12
>do credharry
>endi
>
>if nkeycode=-7
> do form invoices
>endi
>
>if nkeycode=-6
> do prntscrn
>endi
>if nkeycode=140 && alt+F12
>do credharry && for harry only
>endi
>
>if nkeycode=-8
>do mord0
>endi
>
>if nkeycode=27
>thisform.txtremarks.setfocus
>endi
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform