![]() |
listbox items in inis speichern?
Hallo,
wie kann ich alle Items einer ListBox in einer Ini Datei speichern ? MfG. Toenn |
Re: listbox items in inis speichern?
Delphi-Quellcode:
uses IniFiles;
... procedure TForm1.Button1Click(Sender: TObject); var Ini: TIniFile; i : Integer; begin ini := TIniFile.Create('C:\test.ini'); try ini.WriteInteger('Items', 'Count', ListBox1.Items.Count); for i := 0 to Pred(ListBox1.Items.Count) do ini.WriteString('Items', 'Item'+IntToStr(i), ListBox1.Items.Strings[i]); finally ini.Free; end; end; |
Re: listbox items in inis speichern?
danke :)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:07 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz