Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Combobox question
Miscellaneous
Thread ID:
00175399
Message ID:
00175399
Views:
61
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.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform