Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Allow anly choices in combobox?
Message
 
To
15/11/1997 00:48:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00060407
Message ID:
00060417
Views:
30
>>>>>>What do I need to do to make a combobox only allow a user to pick from it's choices and not be allowed to type anything in?
>>>>>
>>>>>Style need to be Dropdown list.
>>>>
>>>>Thanks Michel, that works great. However, when the field is initially blank (the user chose add) the dropdown list consists of the valid choices plus a blank. Besides assigning a default value on add, which the user doesn't want, how do I prevent the blank from being in the list?
>>>
>>>Have you tried setting the value to 1?
>>
>>Do you mean the .Value property? If so, why 1? The values in the list are type charater.
>
>If I understand correctly, you want the default selection to be the first non blank item, is that correct?

Not really. When the user chooses add the combobox's value is blank. I want the user to choose one of the three choice available from the dropdown list. However, the dropdown list contains the three choices I have specified plus a fourth choice which is blank. I want to know how to prevent that blank choice from being in the dropdown.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform