Autor Beitrag
Memphis D
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Di 05.02.08 20:12 
Hi,
hab da ein kleines Problem: Wenn ich das Programm starten will wird angezeigt das b und c Inkompatible Typen sind (fettgedruckte Zeile). Hab b und c als Integer vereinbart.
Hab schon in der Delphi-Hilfe machgesehn, dass bringt mich aber leider nicht weiter.


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
b:=StrToInt(edb.Text);
c:=StrToInt(edc.Text);
   IF b<0 AND c<0 THEN
   BEGIN
   ....
   END


MfG

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Moderiert von user profile iconChristian S.: Topic aus Sonstiges (Delphi) verschoben am Di 05.02.2008 um 20:16
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Di 05.02.08 20:16 
ausblenden Delphi-Quelltext
1:
IF (b<0) AND (c<0) THEN					

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 05.02.08 20:17 
Ein Klassiker ;-).

Da fehlen Klammern.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
b : =StrToInt(edb.Text); 
c := StrToInt(edc.Text); 
IF (b<0) AND (c<0) THEN 
BEGIN 
.... 
END

_________________
We are, we were and will not be.
Memphis D Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mi 06.02.08 13:59 
Danke