Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dumb array and combobox question
Message
From
05/12/2000 15:49:28
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00449531
Message ID:
00449615
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform