>>How to make a command button unaccessible by "Enter"-key,
>>and in the same time accessible by mouse-click and "Tab"-key?
>>
>>Ed
Hi Ed,
You could try something like trapping the Enter key in the LOSTFOCUS or KEYPRESS of the object preceding the Button and redirecting the focus, or trapping the Enter key in the WHEN of the Button and returning .F., e.g.
in the KEYPRESS:
IF nKeyCode = 13
THISFORM.MyObject.SETFOCUS
ENDIF
In the LOSTFOCUS or WHEN
IF LASTKEY() = 13
.
.
ENDIF
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.