Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox Not Saving Entry
Message
From
24/07/2001 11:40:21
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00534411
Message ID:
00534438
Views:
13
I guess what's not really clear is why this is all necessary. If the concept behind a Combobox is to select from a list or enter a value, why does it not handle that automatically? If I type a value in a Textbox I do not need to do a replace; the fact that I have it tied to a ControlSource is enough. I do understand why the AddItem would be used, but when do you need the AddListItem? It's a lot of coding to get the Combo to do what you would think would be native behaviour.

Renoir

>Yes, replace is required too:
>
>lcVal=this.DisplayValue
>REPLACE (this.ControlSource) with this.DisplayValue
>this.AddItem(this.DisplayValue)
>this.Refresh
>
>AddItem and AddListItem methods of combobox add items to the list in combobox that is displayed when you hit the combobox drop down arrow. What is not clear here?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform