Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropdown Combo Mombo Jombo
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Dropdown Combo Mombo Jombo
Miscellaneous
Thread ID:
00224937
Message ID:
00224937
Views:
62
I have a dropdown combobox based upon an array. The array loads at Form Init time based upon a table of local city names and codes. The array is a list of local cities. Each city has a 3-digit code associated with it that gets saved instead of the whole city name when you pick a city from the dropdown list. That all works and saves just fine, but when I type my own entry in the text portion of the combobox rather than selecting from the dropdown list. It doesn't seem to save the text that I type. For instance, when you need to type in the name of a city that does not exist in the dropdown list. But it does save a code from the array when I choose a city from the dropdown list.

Here are my combobox settings:
BoundColumn 2
ColumnCount =ALEN(acity,2)
ColumnLines .F.
ColumnWidths 250,0
ControlSource myTable.myCity1
DisplayValue cbo_city
FirstElement 1
Number of Elements =ALEN(acity)
RowSource acity
RowSourceType 5-Array
Style 0-Dropdown Combo

Can't I do what I am trying to do or am I doing something wrong?
Thanks for the help...

Steve Kramer
Kramer & Kramer Design
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