Hi,
I'm using VFP 9.0 and am not savy on how to use "events"
within a command button that have code as follows:
KEY PRESS EVENT: LPARAMETERS nKeyCode, nShiftAltCtrl
If I have a commandgroup button (com1 & com2)
CAPTION ON COM1: "CLICK TO CONTINUE SEARCH FOR CUSTOMER-No"
CAPTION ON COM2: "CLICK HERE IF THIS IS THE CUSTOMER-Yes"
?? to search .DBF file
If I want the USER to NOT have to use the mouse to "click"
on the command for each seperate command button, but instead just press the "N" key for NO or press the "Y" key for yes. Do I use the KEY PRESS EVENT for this? If so, what
code should I write for Lparameters, Nkeycode ETC. for
KEY "N" or "Y". Once I set the focus to the Commandgroup
button ? I'm used to the old foxpro 2.6 code "IF ANS = "Y"
etc. Any help would be greatly appreciated.
Greg
I'm using VFP 9.0 and am not savy on how to use "events"
within a command button that have code as follows:
KEY PRESS EVENT: LPARAMETERS nKeyCode, nShiftAltCtrl
If I have a commandgroup button (com1 & com2)
CAPTION ON COM1: "CLICK TO CONTINUE SEARCH FOR CUSTOMER-No"
CAPTION ON COM2: "CLICK HERE IF THIS IS THE CUSTOMER-Yes"
?? to search .DBF file
If I want the USER to NOT have to use the mouse to "click"
on the command for each seperate command button, but instead just press the "N" key for NO or press the "Y" key for yes. Do I use the KEY PRESS EVENT for this? If so, what
code should I write for Lparameters, Nkeycode ETC. for
KEY "N" or "Y". Once I set the focus to the Commandgroup
button ? I'm used to the old foxpro 2.6 code "IF ANS = "Y"
etc. Any help would be greatly appreciated.
Greg