function Tform1.CheckBlank():Boolean;
begin
if affairCB.Text='请选择' then begin
application.MessageBox('事由选项必须填写!', '提示信息', MB_OK + MB_ICONWARNING);
Result:=False;
Exit;
end;
if DE1.=False then begin
application.MessageBox('开始日期输入有错误,请重新输入!', '提示信息', MB_OK + MB_ICONWARNING);
Result:=False;
Exit;
end;
//if overday_checked.Checked=False then
end;
[Fatal Error] kqcx.dpr(6): Could not compile used unit 'mainform.pas'
为什么编译出错?
function Tform1.CheckBlank():Boolean;
begin
if affairCB.Text='请选择' then begin
application.MessageBox('事由选项必须填写!', '提示信息', MB_OK + MB_ICONWARNING);
Result:=False;
Exit;
end;