Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why does TDBLookUpComboBox remember?

Status
Not open for further replies.

Wings

Programmer
Feb 14, 2002
247
US
I have a TDBLookUpComboBox connected to and SQL Query. When I close the query, the TDBLookUpComboBox retains its previous text. Is there a way to reset and clear the text of this control? In addition, I have other sql statements generated off the selection in the aforementioned TDBLookUpComboBox. These Queries in turn drive other TDBLookUpComboBoxes. For some reason, when i populate these boxes, if the query returns the same results as a previous time, the box automatically selects the last selected item in the list, i need it to default back to none selected. any ideas?
 
I have never used a TDBLookUpComboBox but all the other types i have used has a method called Clear(). Thus try the TDBLookUpComboBox->Clear(), if it exists it will do the job i guess.

Totte
 
Thanks for the help, but the clear method does not exist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top