Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying multi columns in Combo Lists
Message
De
30/01/2003 06:28:55
 
 
À
30/01/2003 01:32:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00747033
Message ID:
00747058
Vues:
17
Hi Rosendo.

I have a three column drop down combo list and I want to show the fisrt two columns as the display value.

The DisplayValue of a combo box always comes from the first column in its RowSource. So if you want to display the first two column when the combo is closed, you have to set the combo up like this:
RowSourceType: 3-SQL Statement
RowSource: SELECT ALLTRIM( LastName ) + ', ' + FirstName AS FullName, IDNumber from MyTable ORDER BY LastName INTO CURSOR MyCursor
BoundColumn: 2
BoundTo: .T.
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform