General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only