DELPHI编程的一个错误!

来源:百度知道 编辑:UC知道 时间:2024/05/15 19:11:04
if edit1.Text :='zzz'and edit2.Text :='zzz' then
form1.show
else
showmessage('asdf');
编译后出现

Incompatible types: 'String' and 'procedure, untyped pointer or untyped parameter'错误.请求讲解 .谢谢

if (edit1.Text ='zzz') and (edit2.Text ='zzz') then
form1.show
else
showmessage('asdf');

IF语句的:=要把它改成=;
你对edit1.Text 和'zzz'应该是比较而不是赋值。

:=这个不是赋值号吗