Autor Beitrag
Nemesis II
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 49



BeitragVerfasst: So 08.01.06 14:21 
Hallo Leute,

warum akzeptiert Delphi diese einfache Aussage nicht?

if CheckBox1.Checked := false then MediaPlayer1.Enabled := false;

dann kommt dieser Fehler: [Error]: E2012 Type of expression must be BOOLEAN

Danke schon mal für eure Hilfe!
SchwiegerSohn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25



BeitragVerfasst: So 08.01.06 14:25 
ausblenden Delphi-Quelltext
1:
if CheckBox1.Checked := false then MediaPlayer1.Enabled := false;					

muss richtig heissen
ausblenden Delphi-Quelltext
1:
if CheckBox1.Checked = false then MediaPlayer1.Enabled := false;					

_________________
Wer rechtschreibfehler findet darf sie behalten!
Nemesis II Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 49



BeitragVerfasst: So 08.01.06 14:29 
Hey cool danke :D , das klappt sogar, habs noch nicht so raus mit den ganzen Regeln und Befehlen bei Delphi, aber das kommt noch.

Danke Gruß Eugen