Fred,
There seems to be a bit of confusion at VFP headquarters: The second parameter of KeyPress is called "nShiftAltCtrl" and the Help says '
nShiftAltCtrl
Sets a bit if a modifier key is held down while the key identified in nKeyCode is pressed.
The valid modifier keys are the SHIFT, CTRL, and ALT keys.Then at the end is the line YOU quoted. Very strange........
>Yes, INKEY() can trap ALT keystrokes, but I believe that KeyPress can not. (I believe I've tried it in the past, but I don't properly recall the results with absolute certainty.
>
>The last line of the help for KeyPress states:
>
>"The KeyPress event does not occur for any combination of keys with the ALT key.
>"