Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing other combobox columns
Message
De
19/03/2004 12:22:51
 
 
À
19/03/2004 10:47:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00887917
Message ID:
00887978
Vues:
6
This message has been marked as a message which has helped to the initial question of the thread.
Hi Chris.

I have to be overlooking something obvious... I have a combobox with RowSourceType 5-Array, and the included array has 3+ columns. In the combobox.click(), I want call another function and pass columns 2 & 3 as parameters. How do I reference multiple columns from the selected row?

If you take John's suggestion, keep in mind that all the items in the control's internal List collection are stored as character strings. If you have other data types in your array, a better solution would be to access the array directly like this:

assuming that the array used as the RowSource is an array property of the combo box called aItems, this code will do it for you:
lnRow = This.ListIndex
CallMyFunction( This.aItems[ lnRow, 2 ], This.aItems[ lnRow, 3 ] )
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform