Autor Beitrag
simlei
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

WIN XP
D7
BeitragVerfasst: Sa 10.09.05 21:38 
ausblenden Delphi-Quelltext
1:
If (bilder2[m,i*2,k*2]=1 and bilder2[n,i*2,k*2]=1) xor (bilder2[m,i*2+1,k*2]=1 and bilder2[n,i*2+1,k]=1) Then					


Hier gibt es zwei Fehler... die arrays sind statisch und vom typ byte.
'Inkompatible Typen' ...

Wo liegt der Fehler? Wie kann ich dass beheben? Bitte schreibt!!
thx im voraus

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
Moderiert von user profile iconChristian S.: Topic aus Sonstiges verschoben am Sa 10.09.2005 um 22:58
Grishnak
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 221

Windows XP Home
Delphi 7 PE, Delphi 2005 PE
BeitragVerfasst: Sa 10.09.05 21:42 
Schnellschuß:
ausblenden Delphi-Quelltext
1:
If ((bilder2[m,i*2,k*2]=1) and (bilder2[n,i*2,k*2]=1)) xor ((bilder2[m,i*2+1,k*2]=1) and (bilder2[n,i*2+1,k]=1)) Then					

_________________
Mach' etwas idiotensicher und irgendjemand erfindet einen besseren Idioten!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 10.09.05 21:45 
Moin und :welcome: im Forum!

Wenn du "vernünftig" Klammern setzen würdest, klappt´s: :wink:
ausblenden Delphi-Quelltext
1:
2:
3:
  if ( (bilder2[m,i*2,k*2] = 1) and (bilder2[n,i*2,k*2] = 1) )
     xor
     ( (bilder2[m,i*2+1,k*2] = 1) and (bilder2[n,i*2+1,k] = 1) ) then

cu
Narses

//EDIT: zu langsam...
simlei Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

WIN XP
D7
BeitragVerfasst: So 11.09.05 05:39 
Klasse Danke! Jetzt gehts wieder... :D
Ich wusst gar nicht dass man bei Klammern Platz lassen muss... :oops:
naja vielen Dank
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: So 11.09.05 08:37 
user profile iconsimlei hat folgendes geschrieben:
Ich wusst gar nicht dass man bei Klammern Platz lassen muss... :oops:

Nein, man muss keine Leerzeichen zwischen den Klammern einfügen. Du hast einige Klammern vergessen! Das war der Fehler. ;-)

Gruß
Tino