Autor Beitrag
Roadrunner116
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 89

Win XP Home, Ubuntu Linux 6.06
Delphi 7, Java, PHP
BeitragVerfasst: So 07.01.07 20:56 
Hallo, ich möchte mit Hilfe einer FileListBox Dateien aus einem Bestimmten Verzeichnis wählen.
Zitat:
FileListBox1.Directory := 'data';

das funktioniert!
Nur in meinem Programm lade ich aus dem Verzeichnis 'style' auch noch dateien!
Bekomme nun die Fehlermeldung, er können die dateien in "C:\...\data\style" nicht finden, er soll aber in "C:\...\style" suchen!
Wenn ich "FileListBox1.Directory := 'data';" auskommentiere funktioniert es!
Was habe ich falsch gemacht?
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 07.01.07 20:59 
Versuchs mal mit einem absoluten Pfad, statt einem relativen. :wink:

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Roadrunner116 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 89

Win XP Home, Ubuntu Linux 6.06
Delphi 7, Java, PHP
BeitragVerfasst: So 07.01.07 21:24 
wenn ich einen absoluten pfad benutze und der user installier das programm in einem anderen verzeichniss entstehen dort doch wieder probleme....!

Jemand eine Idee?
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 07.01.07 21:44 
Application.ExeName und ExtractFilePath :wink:

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Roadrunner116 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 89

Win XP Home, Ubuntu Linux 6.06
Delphi 7, Java, PHP
BeitragVerfasst: So 07.01.07 22:52 
werd mich damit ma beschäftigen, falls ich noch ein problem habe weiß ich ja wo es fruendlcihe Hilfe gibt...