Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you really type in text as the data in a combo box?
Message
From
13/11/2002 10:35:25
 
 
To
13/11/2002 09:40:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00722103
Message ID:
00722146
Views:
22
You have to add the value typed in programmatically, but how you do that depends on the rowsource type. If it's just values, then you can use the list.additem method. If it's fields or alias, then you need to add it to the table from which the rowsource is getting it's values, and then requery the combobox. There are other rowsource types too, but without knowing what you're using, it's hard to know how you need to approach it.

Alan

>I need a combo box that provides a value equal to either the item selected from the drop down list or the text typed into the text area. The FoxPro (6) documentation says "You can enter information in the text box portion or select an item form the list box portion" . I can enter text just fine in the text box portion, but the value of the combo box is never set to this text - it is set to null unless one of the list box items is selected. I have the style set to "0" (dropdown combo).
>
>Is there a trick to this or a setting I missed or do I need a new control?
>
>Thanks,
>Pat
Previous
Reply
Map
View

Click here to load this message in the networking platform