> >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) ?
if nKeypress=13 form1.command2.enabled=.t. form1.command3.enabled=.t. form1.command4.enabled=.t. form1.command2.SetFocus() endif? form1? Idn't this = thisform ?