Autor Beitrag
Pdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 142

Win XP
Delphi 7
BeitragVerfasst: Sa 06.08.05 11:40 
Hi

ich möchte EINE zeile löschen, die in einem memo ist:
ausblenden Quelltext
1:
2:
3:
4:
5:
Lala

lele

lolo

wird dann zu
ausblenden Quelltext
1:
2:
3:
lala
lele
lolo


wie kann man das machen
ausblenden Delphi-Quelltext
1:
2:
for i:=0 to memo.Lines.Count do
if memo.lines[i]='' then ?????????

gibt's da nen befehl??

thx Pdd

_________________
Wenn alles steht und nix mehr looft, denn isses was von Meikrosooft
DXC
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 61

WINXP + SP2
D6 Pers, D2005 Pers
BeitragVerfasst: Sa 06.08.05 11:45 
Hi,

vielleich hilft dir da weiter :wink: : www.delphi-forum.de/...7&highlight=memo

Tipp: In Zukunkt mal die Delphi Suchfunktion nutzen :wink:

MFG
DXC
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 06.08.05 11:45 
ausblenden Delphi-Quelltext
1:
memo1.Lines.Delete(0);					

löscht die erste Zeile deines Memos.

Aber ein Tipp:
Wenn du soetwas machst, dann starte die for-Schleife nicht bei 0 und gehe bis anch unten durch, sondern mach eine downto-for-Schleife, bei der du unten beginnst und zu 0 gehst.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Pdd Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 142

Win XP
Delphi 7
BeitragVerfasst: Sa 06.08.05 12:07 
Danke!

_________________
Wenn alles steht und nix mehr looft, denn isses was von Meikrosooft
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Sa 06.08.05 15:17 
Ich hab deine zweite Frage abgetrennt, du findest sie hier. Bitte künftig nur eine Frage pro Topic stellen :mahn:

_________________
JSXGraph