Autor Beitrag
Grolle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

Win XP, Win 7
Delphi 2010 Pro
BeitragVerfasst: Sa 15.01.05 16:15 
Wie kann ich denn mit dem OpenDialog verschiedene Files
verschiedenen SyneditFeldern zuweisen?
THX: Grolle
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 15.01.05 16:39 
den opendialog öffnest du mit opendialog.execute. die datei die der user auswählt bekommst du über die iegenschaft filename !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
heinze
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 112

XP
D4 Prof
BeitragVerfasst: Sa 15.01.05 16:39 
Durch den Opendialog erhälst du nur den pfad zu der datei, schaumal in die onlinehilfe rein

_________________
Für Fehler haftet die Tastatur bzw Für Gramatik ist meine legasthenie zu verklagen sonstige Verbesserungsvorschläge meiner Text bitte per pn an mich
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 15.01.05 16:41 
Hi,

Etwa so ähnlich (Code muss noch angepasst werden an viele Synedit Felder)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
  i: Integer;
begin
  if OpenDialog1.Execute then
    for i := 0 to OpenDialog1.Files.Count - 1 do
      SyneditFeldX.LoadFromFile(Files[i]);