Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 20.02.06 18:14 
Ich möcht so gern einen Zeilenumbruch in ein rtf und ein Memo reinprogrammieren nur ich weiß nicht wie ich das machen soll!! wer kann mir helfen, wer hat mich lieb??? :lol:
mfg elundril

(zb:)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure Button1click(sender:Tobject)
var strsting,stranders:Sting;
begin
  Memo1.text:=strstring;
  Memo1.text:=memo1.text + {Hier soll ein enter rein} + stranders;
end;


Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mo 20.02.06 18:16 
hallo

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure Button1click(sender:Tobject)
var strsting,stranders:Sting;
begin
  Memo1.text:=strstring;
  Memo1.text:=memo1.text + #13 + stranders;
end;


so gehts..gings.. omg..

sollte es gehen.. warum funtzt bei mir grad nit :oops:
mom..


Zuletzt bearbeitet von Marc. am Mo 20.02.06 18:21, insgesamt 1-mal bearbeitet
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 20.02.06 18:20 
viel dank ich tüftel schon ewig darüber und hab schon alles ausprobiert!!
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mo 20.02.06 18:31 
So gehts aber ;) !!!!!

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure Button1click(sender:Tobject)
var strsting,stranders:String;  // sting?
begin
  Memo1.text := strstring;
  Memo1.text := memo1.text + #13#10 + stranders;
end;


achja... musses do oben nicht string heißen? :lol:
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 20.02.06 18:37 
ups... danke!!! und warum #13#10??
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mo 20.02.06 18:46 
#13 ist der ACII code für enter :P


Zuletzt bearbeitet von Marc. am Mo 20.02.06 18:49, insgesamt 1-mal bearbeitet
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 20.02.06 18:47 
ja des stimmt aber warum #10??
moddin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75

WinXP Pro
Delphi 7 Enterprise ;-)
BeitragVerfasst: Mi 22.02.06 00:22 
heißt das wenn man im Memo1.SelText nach ord(13) sucht kann man feststellen wieviele Zeilen man selektiert hat?
Grenzgaenger
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 22.02.06 20:49 
DOSE/WINNIX
#10 = Neue Zeile
#13 = fange zeile von vorne an

UNIX
#10 = Neue Zeile und fange diese von vorne an
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 24.02.06 10:48 
@moddin: Warum willst du ein Wörterzählen einbauen?? kann ich dir den Text schicken!!!
moddin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75

WinXP Pro
Delphi 7 Enterprise ;-)
BeitragVerfasst: So 05.03.06 18:44 
klar immer her damit ;-)
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 08.03.06 15:44 
ok bring ich das nächste mal mit!