Someone has to ask the dumb questions - might as well be me.
Using VFP 7, Professional.
Form has keypreview enabled.
Routine at keypress, form level.
do case
case nkeycode = -1
thisform.blab.blab
case nkeycode = -2 (works well)
thisform.blab.blab
case nkeycode = -9
thisform.blab.blab
case nkeycode = 134
thisform.blab.blab (works well)
endcase
Function keys -2 through -8 (F2 through F9 inclusive) show under the debugger. -1 (F2) and -9 (F10) do not trigger the key press event. (133 and 134, F11 and F12 also show correctly.)
Other combinations tried:
case fklabel(nkeycode)='F2'
case nkeycode = (-1)
These seem to have no effect, good or bad, because the event does not seem to fire.
I can make the routines work by assigning a macro literal to the 2 keys. I would prefer to use the proper codes if they can be made to come through.
Any help will be appreciated.
Using VFP 7, Professional.
Form has keypreview enabled.
Routine at keypress, form level.
do case
case nkeycode = -1
thisform.blab.blab
case nkeycode = -2 (works well)
thisform.blab.blab
case nkeycode = -9
thisform.blab.blab
case nkeycode = 134
thisform.blab.blab (works well)
endcase
Function keys -2 through -8 (F2 through F9 inclusive) show under the debugger. -1 (F2) and -9 (F10) do not trigger the key press event. (133 and 134, F11 and F12 also show correctly.)
Other combinations tried:
case fklabel(nkeycode)='F2'
case nkeycode = (-1)
These seem to have no effect, good or bad, because the event does not seem to fire.
I can make the routines work by assigning a macro literal to the 2 keys. I would prefer to use the proper codes if they can be made to come through.
Any help will be appreciated.