Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent blank/null value in DropDown Combo
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00573000
Message ID:
00573003
Views:
24
This message has been marked as the solution to the initial question of the thread.
You can change the Style property of a combobox to 2-Dropdown List. This way a user would be unable to type anything.

>I have a simple dropdown combo box on my form. Right now I'm just using a RowSourcType of "Value". (later I may change that to a table or an array.) In any case I would like to prevent the user from leaving the combo box blank or typing something other than the values on the list and then proceeding. I would like to maybe set it to the value of the first item on the list if they leave it blank and if they try to type an invalid value. I don't see a property for setting that behavior. How do you limit the user to only the choices in your combo box?
>
>It eludes me.
>
>Thanks
>
>Elgin
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform