Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Di 22.03.05 14:07 
Hi,

folgendes Problem:
(Auch nach langem Suchen hab ich keine Lösung)
Die Opendialog-Komponente bietet die Möglichkeit zum öffnen mehrerer Dateien gleichzeitig(OfAllowMultiselect). Wenn die OPtion auf true steht und ich des execute-EReigniss auf einen Botton lege, kann ich im Öffnendialog zwar mehere Dateien auswählen aber wie bekommt die mein Programm => wie frägt mein Programm alle aufgewählten Dateien ab???

Bitte helft mir


PS: Ich hoffe ihr versteht meine Formulierung.

Moderiert von user profile iconTino: Titel geändert.
Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Di 22.03.2005 um 14:54
PattyPur
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 80

Win98, WinXP
Delphi 7
BeitragVerfasst: Di 22.03.05 14:10 
Der Opendialog hat die eigenschaft Files vom Typ Tstrings oder TStringlist dort sind die dann drin.

_________________
Das Leben ist zum Spielen da,
alles andere ist Unsinn
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Di 22.03.05 14:13 
Ahhh!
Wie müsste ich die dann abrufen wenn ich zb alle in ein Memo(1 Zeile für einen DNamen) haben wöllte?
PattyPur
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 80

Win98, WinXP
Delphi 7
BeitragVerfasst: Di 22.03.05 14:20 
ausblenden Delphi-Quelltext
1:
memo1.Text:=opendialog1.Files.Text					

_________________
Das Leben ist zum Spielen da,
alles andere ist Unsinn
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Di 22.03.05 14:26 
Perfekt!
Vielen Dank - genau nach sowas hab ich gesucht!
PS: Melde mich wenn's nicht geht. :wink:
PattyPur
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 80

Win98, WinXP
Delphi 7
BeitragVerfasst: Di 22.03.05 14:34 
Ist mit Pfadangabe wenn du es ohne willst musst du die liste in ner schleife durchgehen

ausblenden Delphi-Quelltext
1:
2:
for i:=0 to opendialog1.files.count-1 do 
  memo1.lines.add(extractfilename(opendialog1.files[i]))

_________________
Das Leben ist zum Spielen da,
alles andere ist Unsinn
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Di 22.03.05 19:14 
Das hatte ich schon bemerkt. Trotzdem danke für deine Aufmerksamkeit :D !