Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box - 2bd Column
Message
De
25/08/1997 10:25:43
 
 
À
25/08/1997 10:11:09
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00046667
Message ID:
00046676
Vues:
22
>I have a combo box set as a drop down list with it's list from a cursor. THe problem is I can't get the datasource to be filled from the 2nd column. I tried setting the bound column property to 2 but it still filled the datasource from the 1st column. What am I missing?

There are two properties of combo affected by rowsource allocation. For example you have 2-field cursor with fields Id,Name, Combo.RowSourceType=6 (fields, it's better than alias here), Combo.RowSource="cursor1.name,id" and Combo.BoundColumn=2.
Combo.Displayvalue (text in text portion) will show first column of RowSource- Name field. Combo.Value will store second column- Id field. So, you can use ID field (Combo.Value) of lookup table/cursor to create/edit master table record.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform