Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBoxes and Arrays
Message
De
09/06/1999 09:21:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227332
Message ID:
00227838
Vues:
24
Jim...

The ListIndex property of a ComboBox returns the currently selected row of the array behind the combo box. So, using your example, you should be able to say

lcOtherColumnValue = MyArray[ComboBoxObject.ListIndex, 02]

Scott


>When you have a combobox with a rowsource using an array, how can you set another variable with the value from the same row number of the array but a different column number after you select an item from the array? Example:
>ARRAY =
>1,A
>2,B
>3,C
>4,D
>5,E
>
>The Combobox selects "D" and after that I want another variable to equal "4". How can you reference the array when it is being selected?
>
>Colombo.
Scott D. Grabo
Chief Information Officer
Occupational Health Group
First Advantage Corporation
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform