Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display second value of the combo box
Message
 
 
À
18/03/2010 04:59:14
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01455301
Message ID:
01455324
Vues:
37
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform