Autor Beitrag
Tanrek
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Mo 01.08.05 09:18 
also, ich habe ein memo. in das soll ein text eingefügt werden. soweit ist ja noch alles klar, doch den Text den ich lese, der sieht ungefähr so aus:
ausblenden Quelltext
1:
Dies ist ein #test					

Im Memo soll das aber dann so angezeigt werden:
ausblenden Quelltext
1:
2:
Dies ist ein
test

eigentlich muss ich ja nur die # in einen zeilenumbruch umwandeln. hab leider keine ahnung wie :cry:
kann mir dabei vielleicht wer helfen?

mfg tanrek

Moderiert von user profile iconTino: Code-Tags hinzugefügt.
andras
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Mo 01.08.05 09:26 
morgen
bei mir sind zeilenumbrüche das: #$1A
vielleicht hilfts dir ja
Herr der Runden
Hält's aus hier
Beiträge: 7


D6 Ente
BeitragVerfasst: Mo 01.08.05 09:30 
ausblenden Delphi-Quelltext
1:
Memo1.Lines.Add('Dies ist eine abgeschlossene Zeile');					

der String den du mit Lines.Add einfügst wird als nächste Zeile angehängt oder was willst du wissen ?? :?:

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mo 01.08.05 09:32 
Klicke mal Suche in: Delphi-Forum, Delphi-Library TEXT ERSETZEN...

Cu,
Udontknow
chrissivo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 130

WIN XP, WIN 2000, WIN MCE, WIN 98
D5 Pers
BeitragVerfasst: Mo 01.08.05 09:45 
Ansich ist der Zeilenumbruch #13 bzw. #10 der Zeilenvorschub. Das klappt aber in einem MeMo nicht, hatte ich schon selbst ausprobiert. Habs dann über Lines.Add(String) (s.o.) gelöst.

_________________
"... was ich noch zu sagen hätte dauert eine Zigarette, und ein letztes Glas im Steh'n..."
Tanrek Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Mo 01.08.05 09:49 
hab das jetzt mit StringReplace gelöst... hab dann diesen Quelltext
ausblenden Delphi-Quelltext
1:
Memo1.Text:=StringReplace(memo1.Text,'#',#13#10,[rfReplaceAll]);					
luis_figo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 28.08.05 12:09 
weiß jemand wie ich an den jeweils markierten Stellen einen Zeilenumbruch reinhaun kann??


Form1.Formelausgabe.Caption:='Würfel: V=a³ ; O=6a² X quad. Prisma: V=a²h ; O=2a²+2ah X Quader: V=abh ; O=2(ab+ah+bh)'
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: So 28.08.05 12:12 
ausblenden Delphi-Quelltext
1:
2:
3:
Form1.Formelausgabe.Caption := 'Würfel: V=a³ ; O=6a² ' 
  + #13#10 + ' quad. Prisma: V=a²h ; O=2a²+2ah  ' 
  + #13#10 + '  Quader: V=abh ; O=2(ab+ah+bh)'


Moderiert von user profile iconTino: Zeilenumbrüche eingefügt.

_________________
We are, we were and will not be.
luis_figo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 28.08.05 12:13 
Super Danke!