Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Focus
Message
 
To
10/11/2005 13:40:55
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01067310
Message ID:
01067314
Views:
20
>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 nKeypress=13
   form1.command2.enabled=.t.
   form1.command3.enabled=.t.
   form1.command4.enabled=.t.
   form1.command2.SetFocus()
endif
? form1? Idn't this = thisform ?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform