![]() |
Fehler: Anweisung für For-Schleifenvariable 'i'???
Wo soll denn hier der Fehler sein?
Delphi-Quellcode:
count1:=0;
count2:=0; for i:=1 to FeldBreite-1 do //Anweisung für FOR-Schleifenvariablen 476 begin y:=0; x:=i; while (x>=0) and (x<Feldbreite) and (y>=0) and (y<FeldHoehe) do begin if feld[x,y]=2 then inc(count2) else count2:=0; if count2=3 then begin Computerspalte:=y+1; Computersetzt; exit; end; if feld[x,y]=1 then inc(count1) else count1:=0; if count1=3 then begin Computerspalte:=y+1; Computersetzt; exit; end; x:=x+1; y:=y+1; end; end; |
Wer sagt denn, wo ein Fehler ist. Delphi? An welcher Stelle?
|
ja, das sagt Delphi,
und zeigt die Stelle, wo dahinter steht: //Anweisung für For-Schl... |
Moin Madeleine,
wo hast Du denn i deklariert? |
hi, hab den Fehler, hatte vor dieser Schleife ein end der anderen Schleife vergessen *patsch*
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:13 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz