Autor Beitrag
stratege15
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Mi 13.08.03 15:06 
wie kann man zeilenumbrüche in strings einfügen ?
(in c++ ist das einfach "\n") ?
lambruco
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 100

Win 2000/2000 Server/XP
D6 Prof.
BeitragVerfasst: Mi 13.08.03 15:16 
Versuche es mit
#13#10

also string = string + #13#10

_________________
Wer Rechtschreibfehler findet, kann Sie behalten
gogi2207
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: Mi 13.08.03 15:17 
Versuchs mal z.B. so:

ausblenden Quelltext
1:
label1.caption := 'hallo' + chr(13) +'du';					


Jochen
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Fr 15.08.03 15:06 
gogi2207 hat folgendes geschrieben:
Versuchs mal z.B. so:

ausblenden Quelltext
1:
label1.caption := 'hallo' + chr(13) +'du';					


Jochen


:D chr(13) = #13 = true :wink: ...aber zusätzlich brauchst du noch ein 'lineFeed' (#10) für einen korrekten umbruch

_________________
mfg.
mâximôv
Herbert
Hält's aus hier
Beiträge: 13



BeitragVerfasst: So 17.08.03 22:13 
Stichwort: sLineBreak, dan gibts auch kein Probleme unter Linux (Normalerweise ;) )

Gruß