Autor Beitrag
sCrAPt
Gast
Erhaltene Danke: 1



BeitragVerfasst: So 23.02.03 12:15 
Hi
Wie kann ich in einem Memo eine Zeile über einer bestimme schreiben?
z.B.
Zeile1: Blablabla
Zeile2: Blablabla <=== über die soll eine neue
Zeile3: Blablabla
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: So 23.02.03 12:17 
So:

ausblenden Quelltext
1:
2:
Memo1.Lines.Delete(1);
Memo1.Lines.Insert(1,'Hallo');


Au'revoir,
Aya

_________________
Aya
I aim for my endless dreams and I know they will come true!
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: So 23.02.03 17:13 
Hallo,

um eine Zeile in dem Memo einzufügen genügt der Aufruf Insert wie Aya schon geschrieben hat. Allerdings ohne Delete.

Noch eins: Der Index 1 zeigt auf die 2. Zeile, der Index 2 auf die 3. Zeile, usw!

Gruß
TINO
Ist die Frage beantwortet? Das Problem gelöst?

Dann klicke hier, um das Thema entsprechend zu markieren!