Autor Beitrag
ZDW
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Mi 04.06.08 21:40 
Ist wohl eher eine Anfängerfrage, aber ich find einfach nichts in der Delphi-Hilfe. Mit welchem Befehl bestimme ich die Zeilenanzahl eines Memofeldes. Ich brauche sie, weil ich eine For-Schleife so lange laufen lassen will wie ich (benutzte) Zeilen habe.
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 04.06.08 21:41 
ausblenden Delphi-Quelltext
1:
Memo1.Lines.Count					
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Mi 04.06.08 22:02 
Achtung Zählweise!!!

Korrekt:
ausblenden Delphi-Quelltext
1:
2:
3:
For i:=0 to Memo1.Lines.Count-1 do
 begin
 end;


Gezählt wird von Element 0 an ;)