procedure TForm1.MOM;
begin
if label2.caption:='' then
label2.caption:='出现错误。'
else
end;
[Error] Unit1.pas(1762): Type of expression must be BOOLEAN
[Fatal Error] Project2.dpr(5): Could not compile used unit 'Unit1.pas'
...全文
1349打赏收藏
条件控制语句的问题
procedure TForm1.MOM; begin if label2.caption:='' then label2.caption:='出现错误。' else end; [Error] Unit1.pas(1762): Type of expression must be BOOLEAN [Fatal Error] Project2.dpr(5): Could not compile used unit 'Unit1.pas'