In the form's KEYPRESS event, put this:
LPARAMETERS nKeyCode, nShiftAltCtrl
do case
case nKeyCode = 1
go top
thisform.refresh()
nodefault
case nkeyCode = 6
go bottom
thisform.refresh()
nodefault
otherwise
endcase
In real life you'd probably call thisform.GoTop() and thisform.GoBottom() instead of embedding the 'go' and the 'refresh' (or whatever else) in the KEYPRESS event itself.
>I rcv'd a suggestion last week about using the KEYPRESS event in lieu of obsolete ON KEY LABEL or KEYBOARD commands. However, I'm not quite understanding how to get started.
>
>I would like to use the HOME and END keys to issue a GO TOP and GO BOTTOM only when I am on a grid on my form. I need an example of the syntax.
>
>Thanks
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.