Works just fine for me. It returns 1, and 6 just as Marc said. Do you perhaps have an OKL defined for these keys?
>I have KEYPREVIEW = .T. and I can capture various keys like PGUP, PGDN, CTL_HOME, etc...
>
>But when I press HOME or END, nothing happens... I've placed a WAIT WINDOW in the KEYPRESS event to verify this...
>
>Do I need to use ON KEY LABEL to capture HOME and END???? Why????
>
>Thanks
kenweber
GCom2 Solutions
Microsoft Certified Professional