Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with a combobox
Message
De
18/07/2000 02:54:01
 
 
À
17/07/2000 15:30:35
Arturo Valdez
SAYD - Software, Asesoria Y Desarrollo
Culiacán, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393472
Message ID:
00393661
Vues:
23
Hi Arturo.

>> i have a combobox with 3 columns, and i want that when i choice one line that return me the value of the 3rd column, but that dosnt happend alway return the 1st one....what i forgot to do ? <<

I think that you may be confusing the combo box's DisplayValue and it's Value.

Combo boxes are particularly powerful controls because they enable you to display descriptive text from a lookup table while binding the control to its associated key value. This is possible only because the combo box has these two properties. Understanding the role each of them plays can be confusing, to say the least.

DisplayValue is the descriptive text that is displayed in the textbox portion of the control. This is what you see when the combo box is "closed." The combo's DisplayValue always comes from the first column of its RowSource. On the other hand, the combo's Value comes from whichever column is specified as its BoundColumn. If the BoundColumn of the combo box is column one, its Value and DisplayValue are the same when the user picks an item from the list. When the control's BoundColumn is not column one, these two properties are not the same.

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform