Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting array items from a ComboBox
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00368432
Message ID:
00368649
Vues:
19
Jim,

If you make the array the RowSource for the cbo you can simply use the cbo.ListIndex as the array row index (provided you don't have the cbo sort the items, you should just make your array sorted already). You can set the ColumnWidth=200,0,0 if you don't want the other columns to display.

>I have an Array with 3 columns and multiple rows, and column 1 is bound to a ComboBox for user selection. When the user picks an item, how can I tell which row in the Array was selected, so I can use the corresponding column data for the row that was picked? I have used ASCAN to locate the text from the ComboBox, but if there are duplicate names in column one, the first one found will be used and the corresponding column data could be wrong.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform