Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00175399
Message ID:
00175510
Views:
28
Steve,

When a cbo selection has been made the first column is what always displays. You should also set BountTo = .t., and ResetToDefault for DisplayValue it's a readonly value.

>I base on drop-down list in my combobox on an array. But I can't get the right column returned when selected from the drop-down list.
>
>PUBLIC ARRAY MyArray (14,2)
>
>SELECT MyTable
>COPY TO ARRAY MyArray
>
>This array goes into a combobox.
>
>Combobox properties:
>BoundColumn = 2
>ColumnCount = =ALEN(MyArray,2)
>ColumnLines = .F.
>DisplayValue = cbo_mycombobox
>FirstElement = 1
>Format = None
>IncrementalSearch = .F.
>Name = cbo_mycombobox
>NumberofElements = =ALEN(MyArray)
>RowSource = MyArray
>RowSourceType = 5 - Array
>Style = 2 - drop-down list
>
>When I go to select from the drop-down list it shows me the right choices in the drop-down list, but when I click on one, it sticks the associated ID code in the combobox display window instead of the full item name that was chosen from the drop-down list. Any idea what's wrong?
>
>Thanks for your help.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform