Autor Beitrag
robin86
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 26



BeitragVerfasst: Mi 09.06.04 17:02 
Nur eine kleine winzige Frage: Wie kann man das Fenster öffnen, wo man eine Datei auswählen kann(z.B. bei diversen Programmen Öffnen, Speichern, etc)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 09.06.04 17:05 
nun, da gibt es unter "Dialogs" den "OpenDialog" den packst du auf deine Form. Und dann nimmst du z.B. einen Button zum Öffnen, und in die OnClick-Procedur kommt
ausblenden Delphi-Quelltext
1:
Opendialog1.execute;					

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



BeitragVerfasst: Mi 09.06.04 19:07 
OK, und was muss ich machen, um nur den Dateipfad in eine Variable zu kopieren(sodass dann in der var z .B. steht: 'C:\test\test.exe'
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 09.06.04 19:10 
F1 -> TOpenDialog.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 09.06.04 19:24 
Wenns nicht reicht: Opendialog1.filename;

_________________
We are, we were and will not be.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 09.06.04 19:31 
Ich hatte mir eigentlich was dabei gedacht ihm nicht den fertigen Code in den Popo zu schieben. :roll:
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 09.06.04 20:50 
naja, es ist ja nicht der fertige Code...wie man das dann in eine Variable kopiert, muss er schon noch selbst rausfinden. Geht wohl mit copy(Opendialog1.filename,MyStringVar);  :lol:

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



BeitragVerfasst: Do 10.06.04 09:06 
Danke, aber ob ihrs glaubt oder nich. Ich hab F1 gedrückt(hauptsächlich wei der rest da noch nicht gepostet war:) )und hab es dann sogar hingekriegt(wenn auch komplizierter. Aber danke für die Hilfe