Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Probleme mit Stringlist (https://www.delphipraxis.net/57227-probleme-mit-stringlist.html)

TeronG 17. Nov 2005 19:48

Re: Probleme mit Stringlist
 
Auch wenn das mit dem Open dialog klappen sollte ist es, wie Luckie ja schon sagte, sicherer/besser du machst es ungefähr so:

Aus dem
Delphi-Quellcode:
E.LoadFromFile('.\list1.txt');
wird z.B.
Delphi-Quellcode:
E.LoadFromFile(ExtractFilePath(ParamStr(0))+'list1.txt');
und wenn du "ungefähr 0.0002 ms zeit" hast evtl. sogar das :mrgreen:
Delphi-Quellcode:
E.LoadFromFile(ExtractFilePath(Application.exename) +'list1.txt');


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:13 Uhr.
Seite 2 von 2     12   

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