Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on Combo
Message
From
09/06/2006 04:27:01
 
 
To
09/06/2006 04:22:02
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01120105
Message ID:
01128059
Views:
21
Try the code below.
if thisform.combo1.value="TO CASH"
    thisform.mchno.enabled=.t.
    thisform.mdr.enabled=.t.
    thisform.mchno.setfocus
    Return .T.
endif


IF thisform.combo1.value="BY CASH"
   thisform.mCr.enabled=.t.
   thisform.mcr.setfocus
   Return .t.
endif
>Thanks for the help. But I am facing the following problem.
>
> I have created a combo and added fields by combo bulider. Choosed drop down list. In th click event I have wrote:
>
>

>if thisform.combo1.value="TO CASH"
>thisform.mchno.enabled=.t.
>thisform.mdr.enabled=.t.
>endif
>thisform.mchno.setfocus
>
>IF thisform.combo1.value="BY CASH"
>thisform.mCr.enabled=.t.
>endif
>
>thisform.mcr.setfocus
>
><\pre>
>Now, if I choose "To Cash" by useing upper key or "T" or "B" the focus is not firing. But when I am doing same by mouse it is fine.
>How I can get the same result when I use keyboard to find the field? Actually I want that both the system will in force.
Sanjay Dhiraj Patel

MCSE, MCDBA

Net2Biz (Thailand)
Previous
Reply
Map
View

Click here to load this message in the networking platform