Good Morning Naomi,
hm. I missed the point that he means FORMS KEYPRESS. Then yess it would be expected behaviour. Especially if he assigns a access key something like
.caption = '\<Add New'
to the new button. In this case the standard behaviour of THISFORM Keypress (KEYPREVIEW=.t.) would be to call buttons click. (But then he wouldn't need the keypress anyway)
Agnes
>Probably to put the code in one place (KeyPress). I think using NODEFAULT in the Click for each button may work the same - I haven't tried, as I remember.
>
>>Naomi,
>>
>>is there a reason against simple
>>
>>
>>PROCEDURE CLICK
>>NODEFAULT
>>DO CASE
>>CASE ...
>>
>>
>>?
>>
>>I have a button with a similar problem - it calls a method btw.
>>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]