Autor Beitrag
110022
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: Di 09.10.07 17:24 
wie kann ich den Text der in eimem Memo feld steht als .txt datei auf dem Desktop speichern?

bitte mit Quelltext:)


Moderiert von user profile iconjasocul: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Di 09.10.2007 um 18:57
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 09.10.07 17:33 
Hey!
Schau dir mal den Savedialog an, außerdem sollte dir memo.Lines.SaveToFile(); weiterhelfen.
Wenn dir das nicht ausreicht, benutz die Forensuche!

grüße,
Marc
firefuzy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 69

Win 98 SE, WinXP Prof, Vista HPrem.
Delphi 7
BeitragVerfasst: Mi 10.10.07 19:40 
Hier noch der Quelltext (nächstes mal aber echt die SuFu benutzen :wink:
ausblenden Delphi-Quelltext
1:
Memo1.Lines.SaveToFile('C:\Dokumente und Einstellungen\%UserName%\Desktop\bla.txt');					

Du musst %Username% durch deinen Benutzername ersetzen dann klappts.

Greetz firefuzy
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: Mi 10.10.07 19:41 
Na, dann viel Spaß bei Vista oder nicht-deutschen Systemen ;-)

_________________
We are, we were and will not be.
firefuzy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 69

Win 98 SE, WinXP Prof, Vista HPrem.
Delphi 7
BeitragVerfasst: Mi 10.10.07 19:47 
Sorry das hatte ich nicht bedacht... aber eine ganz interesssante Frage...
Gibts eigentlich irgendwo eine Variable für den Desktop-Pfad?
(Sorry dass ich in Threads vo nanderen Leuten Fragen stelle)
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 10.10.07 22:26 
Moin!

user profile iconfirefuzy hat folgendes geschrieben:
Gibts eigentlich irgendwo eine Variable für den Desktop-Pfad?
Dazu haben wir einen FAQ-Beitrag; aber Fragen in dieser Richtung bitte in einem eigenen Thread stellen! ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.