Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox Not Saving Entry
Message
From
24/07/2001 11:21:45
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:
00534424
Views:
13
Hi Vlad,

Are you saying I need to code something like Replace View.Field with This.DisplayValue in the Valid? Man, that seems like it should be unnecessary given I have bound the ControlSource to the field in the view. I don't really understand how the AddItem and AddListItem methods work. Looked them up, but it didn't become clear.

Renoir

>This always required additional code in the Valid event of the combobox to save new value manually. The value typed in the textbox portion of the combobox is stored in the DisplayValue property. Beware about its refreshing - it refreshed quite often by many actions with properties and methods of combobox. You can also always add this new item to the combobox list using AddItem or AddListItem methods of combobox - they work for any row source type, data in list is just a copy of data in the RowSourse and updated by Requery method or RowSource change.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform