Autor Beitrag
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Di 28.09.04 19:46 
Wieso geht das nicht :?!?:
ausblenden Delphi-Quelltext
1:
2:
3:
var  Zeile: Integer;
begin
  while Zeile:=0 to Memo1.Lines.Count do

Delphi setzt den Cursor vor die 0 und sagt
Delphi hat folgendes geschrieben:
Ausdruckstyp muss Boolean sein

:?!?:
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Di 28.09.04 19:50 
sollte dann wohl doch ne for Schleife werden, oder? :wink:

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Di 28.09.04 19:56 
ach stimmt :autsch: :autsch: :autsch: :autsch: :autsch:
Heut is einfach nich mein Tag :(
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 28.09.04 20:10 
ausblenden Quelltext
1:
  while Zeile:=0 to Memo1.Lines.Count do					

Lauf aber nicht zu weit. Memo1.Lines.Count-1 wäre wohl besser.
Ich meine nur, bevor der Kopf richtig weh tut.