Load ini section into ComboBox?
Posted on 1998-09-18
I am new to Delphi, and am trying to write a simple
program which takes an INIfile section, strips out
everything from the "=" right (for each entry) and then
load it all into a combo box. So far, I have been able
to load the section into the combo box:
procedure TForm1.Button1Click(Sender: TObject);
DelphiIni := TIniFile.Create('c:\windows\desktop\test.ini');
ComboBox1.ItemIndex := 0;
The test.ini looks like this:
But...I want to strip out everything from the "=" to
the right so that all I see in the combo box is:
I have been able to do it in visual basic, but am
having a devil of a time doing it in Delphi. any
help or samples would be greatly appreciated.