Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dumb array and combobox question
Message
De
05/12/2000 15:49:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00449531
Message ID:
00449615
Vues:
12
>Hello Stephen
>try this:
>Set your BoundTo Property to True
>Set your BoundColumn to 2
>Set your DisplayValue to =YourArrayName[1,1]
>and in the combo box's interactive change event try this:
>THISFORM.TEXTBOXNAME.VALUE = THIS.VALUE
>
>From what I understand, I believe this is what you are trying to do.

As an alternative, (depending on your requirements), you might consider chucking your textbox altogether and instead, display your combobox as a two column affair bound to column 2 as above so that mycombo.value returns the
currently selected element of the second column.

BTW, if it's necessary to also reference the selected value in column 1 you can access it with:

mycombo.list(mycombo.listindex,1)

(might be a simpler way, but that's how I do it.)
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform