Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox ListIndex - Syntax Error
Message
De
08/05/2007 14:15:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01223409
Message ID:
01223520
Vues:
16
>>>>Ok, that worked, not a related question... I always have trouble with these ComboBoxes that display a description, but use a code from a table. For example:
>>>>
>>>>
>>>>SELECT MyTable.Desc, MyTable.Code FROM MyTable WHERE Blah = Blah INTO CURSOR CurForNoUse
>>>>
>>>>
>>>>And I want to show the description in the combo, but use the code for processing afterwards. Any insight to how this works best? Thanks!
>>>
>>>You're doing it correctly already. Set combo's columncount to 2, BoundColumn to 2, ColumnWidths to 200,0
>>>
>>
>>
>>You don't need to add a column and then make it's size 0. All you need to do is have a ColumnCount as many as you'd like to see in your drop down and you can set the BoundColumn to any field number that exists, whether it's part of your ColumnCount or not.
>
>E.g. ColumnCount = 1 and BoundColumn = 2 would work fine, right? Never tried this, always used ColumnWidths instead.

That is correct. About the only thing you can't control is that the first column of your data is what's displayed in the non-dropped box.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform