Einzelnen Beitrag anzeigen

Benutzerbild von Sprint
Sprint

Registriert seit: 18. Aug 2004
Ort: Edewecht
712 Beiträge
 
Delphi 5 Professional
 
#6

Re: In English (Ini question)

  Alt 26. Dez 2004, 13:51
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
const
  S_TITLE = 'Title';
var
  Sections: TStringList;
  I: Integer;
begin

  Sections := TStringList.Create;
  try
    IniFile.ReadSections(Sections);
    for I := 0 to Sections.Count - 1 do
    begin
      if IniFile.ValueExists(Sections[I], S_TITLE) then
        ComboBox1.Items.Add(IniFile.ReadString(Sections[I], S_TITLE, ''));
    end;
  finally
    Sections.Free;
  end;

end;
Ciao, Sprint.

"I don't know what I am doing, but I am sure I am having fun!"
  Mit Zitat antworten Zitat