Actually, the functionality of Enter depends on the design of the form. If you have a "Default" command button, Enter will trigger it's Click method.
>
>By default, Enter moves focus to the next control in the tab order. I'm not sure it's a good idea to change that. Anyway, you can get desired result with following code.
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode = 13
> KEYBOARD "{ALT+DNARROW}" CLEAR PLAIN
> NODEFAULT
>ENDIF
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer