LPARAMETERS nKeyCode, nShiftAltCtrl
do case
case nKeyCode=keyF2
thisform.cmdToday.click
case nKeyCode=keyF5
thisform.cmdAdd.click
case nKeyCode=keyF6
thisform.cmdEdit.click
case nKeyCode=keyF7
thisform.cmdDelete.click
endcase
NOTE: keyF1 through keyF10 are predefined constants with the corresponding codes for the function keys.
During runtime the form (with the buttons) is loaded, but when I press one of the designated Keys the following
error message appears:
THISFORM can only be used within a method
What am I missing and how can I designate actions to keys pressed within an active form ?Thanks in Advanced or Hope This Helps