Autor Beitrag
CodexX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118

WinXP
Delphi XE
BeitragVerfasst: Di 06.03.07 15:21 
Mit
ausblenden Delphi-Quelltext
1:
ClipBoard.AsText:='Text';					

bekomme ich ohne Probleme einen einzeiligen Text in die Zwischenablage kopiert.

Wie bekomme ich aber nun mehrere Zeilen hin?
Versuche wie
ausblenden Delphi-Quelltext
1:
ClipBoard.AsText:='Text1'+#10#13+'Text2';					

blieben leider erfolglos.
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: Di 06.03.07 15:24 
versuch es mal mit leerzeichen zwischen den + und demn #10#13

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

W98 W2k WXP
Turbo D
BeitragVerfasst: Di 06.03.07 15:32 
besser
ausblenden Delphi-Quelltext
1:
ClipBoard.AsText:='Text1'+sLineBreak+'Text2';					

oder #13#10'

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
CodexX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118

WinXP
Delphi XE
BeitragVerfasst: Di 06.03.07 15:36 
Leerzeichen sind definitiv egal.
user profile iconKroko hat folgendes geschrieben:
#13#10

Ohje, und das war auch schon die ganze Zauberei? Geht ... Danke!
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Di 06.03.07 15:43 
Bitte! sLineBreak ist besser!

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
CodexX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118

WinXP
Delphi XE
BeitragVerfasst: Di 06.03.07 15:50 
user profile iconKroko hat folgendes geschrieben:
sLineBreak ist besser!

warum?
Robinator
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 275

WinXP
BDS 2006
BeitragVerfasst: Di 06.03.07 16:00 
Weil du damit Plattformunabhängig bist :)

_________________
erare humanum est