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
Miscellaneous
Thread ID:
00224937
Message ID:
00225030
Views:
61
Dear Bill,

Thanks for the ideas. I was able to set the ControlSource to none. I read in a VFP book that you can't use ControlSource when you want someone to type into a combobox because it blanks out the entry (which is what was happening).

And I used your idea to look at THISFORM.Value to save the entry when not selected from a dropdown list.

And I read that I could put THIS.DisplayValue = myTable.myCity in the Refresh of the control and display the record when I read it.

Pretty cool. Happy it all works now. I learned something new. The only bad thing is to allow someone to type in a city name means I have to expand the field to hold a city name, not just a city code of 3 chars. But I don't want to assign city codes to little used cities where there might only be a one-time usage of that particular city name. That's why I don't want to add the name to the dropdown list either.

Thanks again. I appreciate the ideas. You got me thinking today.
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform