>I have assigned a set of Alt + [letter] keys and a set of Ctrl + [letter] keys. Alt + [letter] keys are assigned to set orders on grid on page 1. Ctrl + [letter] keys are assigned to move the cursor to a specific field on page 2.
>
>Problem is that if I set the form property KeyPreview to .T. Ctrl + [letter] key set works properly but Alt + [letter] key set does not work. If I set the form property KeyPreview to .F. Alt + [letter] key set works properly but Ctrl + [letter] key set does not work.
>
>Has anyone encounter such kind of problems?
>
>Thanks.
>
>Jim S
Keypress doesn't support Alt combination. Instead you would need something like lastkey(), inkey().
Cetin