Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display second value of the combo box
Message
 
 
To
18/03/2010 04:59:14
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01455301
Message ID:
01455324
Views:
36
>Hi,
>I have a combo box for selection of the CLIENT table, I want to display the CLIENT_NAME from the combox,
>but the BoundColumn is CLIENT_CODE.
>
>BoundColumn is 2
>BoundTo is .T.
>ControlSource is CLIENT.CLIENT_CODE
>FirstElement is 2
>RowSource is SELECT CLIENT_NAME, CLIENT_CODE from CLIENT in to CURSOR cboClient
>RowSourceType is 3-SQL Statement
>ColumnCount is 2
>
>But it still not display the CLIENT_NAME, display the CLIENT_CODE only.
>
>Please advise.

You need to put Client_Name as a first column. - See how I changed setup of your combo inline.

Alternatively, you can adjust ColumnWidths and set it to 0, 200, for example.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform