Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi ini.ReadSection in tstringlist????? (https://www.delphipraxis.net/20216-ini-readsection-tstringlist.html)

Nicolai1234 14. Apr 2004 20:51


ini.ReadSection in tstringlist?????
 
Wie kann ich bei diesem Code
Delphi-Quellcode:
ini.ReadSection('Abschnitt1', Listbox2.Items);
statt in eine listbox in eine tstringlist schreiben?
Oder brauche ich dafür eine andere function?

Christian Seehase 14. Apr 2004 20:55

Re: ini.ReadSection in tstringlist?????
 
Moin Nicolai,

kleiner Tip:
TListBox.Items und TStringList sind beide von TStrings abgeleitet.

Nicolai1234 14. Apr 2004 21:01

Re: ini.ReadSection in tstringlist?????
 
Liste der Anhänge anzeigen (Anzahl: 1)
Wenn ich es aber mit der tstringlist mache kann ich nur .create auswählen, obwohl ich dies schon gemacht habe (siehe Anhang(art steht für den Abschnitt))!!

Wie genau muss ich es machen??

SirThornberry 14. Apr 2004 21:03

Re: ini.ReadSection in tstringlist?????
 
wo liegt das problem??
Delphi-Quellcode:
var LList: TStringList;
begin
  [...]
  Ini.ReadSection('', LList);
  [...]
end;
funktioniert bei mir

Nicolai1234 14. Apr 2004 21:09

Re: ini.ReadSection in tstringlist?????
 
Manchmal glaube ich, ich bin ganz blöd!!! :wall: :wall: :wall: :wall: :wall:

THX, jetzt gehts


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:09 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz