Autor Beitrag
erdalyyy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 18.04.07 14:20 
Hallo allerseits!!

Ich hab mal ne Frage undzwar: Ich hab ein Artikelverwaltungsprogramm mit einer Datenbank und der zeigt mir immer ein fehler an wenn ich das programm in einen ordner tue, aber ich will das der das immer von alleine findet... Ich hoffe ihr versteht was ich meine.
Also ich will bei asignfile nicht ein direkten pfad eingeben sondern das der das automatisch von dem ordner findet wo das ganze projekt gespeichert ist.

Ich danke schon im voraus auf eure Hilfe!!!!
Einloggen, um Attachments anzusehen!
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 18.04.07 14:52 
Hallo!

Schau dir mal die Funktionen ExtractFilePath und ParamStr(0) an. Mit Hilfe dieser beiden Funktionen kannst du das Verzeichnis der Anwendung herausbekommen und zum öffnen der DB verwenden.

Gruß
Tino
erdalyyy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 18.04.07 15:02 
ok danke ich guck mal!