General information
Category:
Forms & Form designer
>>Naomi
>>
>>Just quickly trying:
>>
>>REPLACE FRUITS.GROUP WITH THIS.DISPLAYVALUE
>>
>>does indeed do what I wanted.
>>
>>But, out of interest and to satifsy my curiosity, without putting such code into the Valid of the combobox, how would user inputted text into the text portion of a combobox ever be retained in the bound control. I assumed that the bound control would simply accept the value typed in. Does the default behaviour of the valid clause of a combobox automatically check to make sure the typed in value is in the list of supplied values?
>>
>>Thanks for the pointer
>>Barry Sutton
>>
>>
>>
>By default it doesn't get saved. You have to implement code to save the value in the underlying source of the combobox. That code depends on the source type.
>
>I think Marcia posted a version of such combobox, but in my quick searches this is the best result I found.
Thanks - I have always used comboboxes to provide fixed values only and this is the first time I have used it as a true combo-box. I don't recall having seen anywhere that warns about this non-intuitive behaviour. But you are clearly right and thanks to Marcia for providing the necessary class etc.
Tks
Barry Sutton
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