Autor Beitrag
bigknaller
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Do 15.08.02 11:10 
Also, ich hab ein neues Form, auf dem ein großes RichEdit-Feld ist. Nun will ich, dass in diesem RichEdit-Feld eine Textdatei geladen wird. Diese Textdatei befindet sich im gleichen Verzeichnis wie das Programm. Wie kann ich diese Textdatei nun im RichEdit-Feld angezeigt wird???
Bin noch neu in Delphi :oops: .

Markus

PS: Es kann natürlich, wenn es einfacjer ist, ein Memo-Feld sein.
majolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Do 15.08.02 11:46 
Hi,

erläutere mal ein bisschen genauer. Soll die Textdatei über eine OpenDialog geladen werden oder direkt beim Öffnen des Formenfensters, also automatisch? Welches Format hat die Textdatei?
Gruß
majolo
bigknaller Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Do 15.08.02 11:51 
Sie soll gleich beim Start im RichEdit-Feld erscheinen. Das Format ist *.txt .
majolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Do 15.08.02 12:03 
Hi,

versuchs mal damit
ausblenden Quelltext
1:
RichEdit1.Lines.LoadFromFile(extractFilepath(paramstr(0))+'\Dateiname.txt');					


Gruß
majolo

PS: Muss natürlich ins OnShow oder Create Ereignis der Form geschrieben werden.
bigknaller Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Do 15.08.02 12:16 
Ich bin an einem anderem Rechner. Da ist kein Delphi drauf. Ich schreibe aber gleich morgen, ob es geklappt hat. Danke erstmal.