Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding records to a table via combobox
Message
 
To
06/05/1998 12:55:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00097388
Message ID:
00097423
Views:
22
>Excuse the stupid question, but to requery do I just invoke the native requery event of the combo, e.g. This.requery and if so, how does that differ from refresh?
>
>Sylvia

Sylvia, yes, I mean combo.Requery() (nothing stupid is here to ask...)
Refresh method repaints a form or control and refreshes values for all controls, but for ListBox and ComboBox you need also use Requery. Requery method requeries the row source to which the ListBox or ComboBox control is bound, and ensures that a control contains the most recent data. The Requery method requeries the RowSource property and updates the list with the new values.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform