Autor Beitrag
alexschultze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 317



BeitragVerfasst: Do 12.12.02 21:14 
hiho,

ich bin ein wenig irritiert. Ich habe ein Memofeld, das ich in einen String umwandeln möchte. Jetzt soll der String auch die Zeilenumbrüche /wie im memo/ enthalten. Wie mach ich das am Besten?

Das ist nett so das Gelbe :(((

green
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 12.12.02 21:17 
Die "Text" Eigenschaft des Memofeldes enthält genau das, was Du brauchst.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
alexschultze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 317



BeitragVerfasst: Do 12.12.02 21:48 
nicht ganz. memo1.text liefert mir einen String, klar.

DIeser String enthält aber nur die Zeilenumbrüche, die der User mit [Enter] gesetzt hat!!
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 12.12.02 22:12 
Ahhhhhhhhh, mir geht ein Licht auf! :idea:

Jetzt weiß ich, was Du meinst. Hast Du es schon mal so probiert?

ausblenden Quelltext
1:
2:
3:
mein_string:='';
FOR i:=0 TO Memo1.Lines.Count-1 DO
mein_string:=mein_string+Memo1.Lines[i]+#13#10;


MfG,
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
alexschultze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 317



BeitragVerfasst: Fr 13.12.02 18:04 
noch nicht ;))) danke!!!