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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I am looking for a way to load the Items in my Combo Box from a text file. I have 8 items in ComboBox->Items and I want the list to be configurable by non-programmers. If they add something new to a text file, when the form loads, it loads the ComboBox->Items based on the text file.

Thanks.

Mindy
 
While I've never done this I read about how to do it. Unless someone here can give you specific information about how to do this, my recommendation is to get the book Borland C++ Builder How-To:The Definitive C++ Builder Problem-Solver, by John Miano, Tom Cabanski, & Harold Howe. In chapter 2, there is a section titled "How do I create a combo box that best matches user input?" While it doesn't address reading a file it does talk about how to get the ComboBox to respond to user input. You might also want to visit their web site at .

If you can't find the book or you get stuck, check back here with specific questions and I'll see what I can do.

James P. Cottingham
 
James -

Thanks but i got it to work with:

ComboBox1->Items->LoadFromFile(filename);

Mindy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top