procedure TForm1.Button1Click(Sender:TObject);
begin
if edit1.text<>'' and edit2.text<>'' then
begin
ShowMessage('正确');
end
else
ShowMessage('不能为空');
end;
编译时为啥会出现Operator not applicable to this operand type错误呢?感觉哪也没写错呀?
...全文
15654打赏收藏
为什么会出现这个错误Operator not applicable to this operand type?
procedure TForm1.Button1Click(Sender:TObject); begin if edit1.text'' and edit2.text'' then begin ShowMessage('正确'); end else ShowMessage('不能为空'); end; 编译时为啥会出现Operator not applicable to this operand type错误呢?感觉哪也没写错呀?