>Thanks for all the good advise. My ISP blew up and so I have been off line for the last 3 hours...
>
>Anyway, I checked one of my old apps, and found that the ENTER performed as expected:
> - as the TAB key when the current focus is in a field, and;
> - press the button when the current focus is on a button
>
>After much 'playing' I discovered what I think is a bug. In my INIT, I have a:
> THISFORM.BTNWHATEVER.SETFOCUS
>As expected when the screen is initially displayed the specified button has the 'dots' around the word that makes up its label and the button itself has a slight shadow. When I click on a field with the mouse (or use the TAB) the 'dots' go away (as anticipated) but the shadow stays (i.e. the button still has some type of focus).
To clarify "some type of focus", it sounds to me like VFP is (incorrectly) setting that button's Default property to .T.
FWIW.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing