Autor Beitrag
xxlolxx
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 48

win xp home
Delphi 7 personal
BeitragVerfasst: Mi 24.01.07 22:12 
Hallo

Wie kann man die Zeilen eines memos zählen???


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am Mi 24.01.2007 um 21:28
Grenzgaenger
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 24.01.07 22:15 
ja, man kann sie zählen bspw.

ausblenden Delphi-Quelltext
1:
2:
3:
for i := 0 to memo.count do
 inc(zaehler);
writeln('das memo hat ' + zaehler + ' zeilen');


oder einfach memo.count.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 24.01.07 22:17 
memo1.lines.count;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Mi 24.01.07 22:18 
du meinst wohl

ausblenden Delphi-Quelltext
1:
Memo1.Lines.Count;					

???

Gruß

Saubäär
xxlolxx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 48

win xp home
Delphi 7 personal
BeitragVerfasst: Mi 24.01.07 22:18 
thx für eure hilfe
Spansky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 22

Win XP, Kubunto
Delphi 7
BeitragVerfasst: Mi 24.01.07 22:19 
Zitat:
for i := 0 to memo.count do
inc(zaehler);
writeln('das memo hat ' + zaehler + ' zeilen');


lol... warum sollte man es leicht machen, wenns auch schwer geht, wa?
Grenzgaenger
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 24.01.07 22:21 
tja, hab nicht in die hilfe geguckt.. das überlass ich den der es machen will... ;-)

tja, manche programmieren auch eine schleife von 1 bis 1000000 um den das eröffnungsfensterl 'n wenig länger anzuzeigen... kommt halt drauf an...

und wenn er sie zählen will, kann er sie ja auch zählen... alles geht :-)
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mi 24.01.07 22:40 
Dein Code verzählt sich aber! :shock:
Entweder von 0 bis count-1 oder von 1 bis count, aber nich so. :wink:

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
joker0000
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 70

Win XP
Delphi 2006
BeitragVerfasst: Mi 24.01.07 22:57 
also hier ma ein paar spielereien mit memo. ist eines meiner ersten projekte um mal ein paar sachen zu testen, aber vielleicht hilft das ja jemandem. geht sicherlich auch effektiver, als ich es an manchen stellen gemacht hab...
Einloggen, um Attachments anzusehen!