Registriert seit: 18. Aug 2004
Ort: Edewecht
712 Beiträge
Delphi 5 Professional
|
Re: In English (Ini question)
26. Dez 2004, 14: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!"
|