One minor point: if you're setting the same value to multiple buttons (properties), use STORE command rather than assign statements.
>Hai experts!
>
>Im working with five command buttons;(1) add,(2) Save,(3) edit,(4) display & (5) exit.
>And for data entry I ahve nine text and corresponding label.AT Add command I enabled=.f. for other command. Finaly at Text9, I have chose keyprees and codeed;
>
>
>if nKeypress=13
>form1.command2.enabled=.t.
>form1.command3.enabled=.t.
>form1.command4.enabled=.t.
>endif
>
>
> I want that the save command button (=command2) will be automatically selected and by pressing enter I can proceed further. But in my case the other command button is being selected. How I can select my choice Command (here it is save) ?
>
>Chandan
If it's not broken, fix it until it is.
My Blog