Autor Beitrag
areuter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75



BeitragVerfasst: Do 22.09.05 13:28 
hallo.
sorry wohl eine xtreme anfänger frage!
wie schaffe ich es ein memo in einem memo anzuzeigen? mein problem ist, dass ich gerne im ersten memo in die zeile 0 und 1 etwas anderes schreiben will. d.h.
memo1 mit zeile 0 und 1 dann ab zeile 2 den inhalt von memo2?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
memo1.clear;
memo1.lines.add('überschrift');
memo1.lines.add(' ');
memo1.lines:=memo2.lines;

? problem ist: der rechner überschreibt auch zeile 0+1 im ersten memo..

danke und sorry nochmal!

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 22.09.05 13:35 
Hallo,

mit
memo1.lines:=memo2.lines;überschreibts Du alles.

So ist es besser:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
memo1.clear; 
memo1.lines.add('überschrift'); 
memo1.lines.add(' ');
Memo1.Lines.AddStrings(Memo2.Lines);

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )