Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi FileExists-Problem (https://www.delphipraxis.net/19018-fileexists-problem.html)

S2B 27. Mär 2004 17:47


FileExists-Problem
 
Hi,
ich hab ein Problem mit FileExists! Immer, wenn der folgende Code ausgeführt wird, kommen tausend Fehler und lassen mein Programm abstürzen:

Delphi-Quellcode:
  if FileExists(ExtractFilePath(Application.exename) + 'Playlist.pla')
  then Form14.ListBox1.Items.LoadFromFile(ExtractFilePath(Application.exename) + 'Playlist.pla');
Wo ist der Fehler in dem Code?
Gruß
S2B

toms 27. Mär 2004 17:53

Re: FileExists-Problem
 
Hi,

Wahrscheinlich existiert deine Form14 zu jenem Zeitpunkt ja noch gar nicht.
Dann gibt's eine AV!

S2B 27. Mär 2004 17:57

Re: FileExists-Problem
 
Klar! Sie existiert noch gar nicht! Da hätte ich auch selber draufkommen können...
Vielen Dank für die schnelle Antwort!
Gruß
S2B


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:42 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