Autor Beitrag
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Fr 20.10.06 15:41 
Hi,
Hier ist beschrieben das man beim OpenDialog die Option Multiselect = true setzten soll.
Diese Eigenschaft gibt bei mir aber nicht.
Liegt das an meinem OpenDialog oder bin ich bloß zu blöde :mrgreen:
Vielen Dank im Voraus

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 20.10.06 15:44 
Probier mal ofAllowMultiSelect unter Options ;-)

_________________
We are, we were and will not be.
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Fr 20.10.06 15:45 
:zustimm: Danke :zustimm:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
sintec
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Fr 16.03.07 08:43 
hmm...

bei mir klappt das irgendwie nicht, auch nicht mit ofAllowMultiSelect = true

kann mir bitte mal einer helfen?
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Fr 16.03.07 09:07 
Hallo!

Du bekommst dann eine Liste mit Dateien zurück!

Also nicht mehr opendialog1.filename sondern opendialog1.files.

Siehe Beispiel im Anhang!

LG
Stefan
Einloggen, um Attachments anzusehen!
_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
sintec
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Fr 16.03.07 09:24 
super :D

Danke dir ZeitGeist87
sintec
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Fr 16.03.07 09:56 
ich habe jetzt ein wenig daran gebastelt, aber ich bekomme die exakten namen nicht in ein Array rein

hier sagt er Inkompatible Typen 'string' und 'TStrings'
ausblenden Delphi-Quelltext
1:
  oldfile.AddStrings(extractFileName(dlg_openfile.Files));					


und auch ohne ExtraktFileName bekomme ich die Dateien nicht in ein Array.

wo ist der Fehler??
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 16.03.07 10:08 
Da wirst du dir eine Schleife basteln müssen:
ausblenden Delphi-Quelltext
1:
2:
for i := 0 to dlg_openfile.Files.Count - 1 do
  oldfile.Add(ExtractFileName(dlg_openfile.Files[i]));

_________________
We are, we were and will not be.