J
jackfei
Unregistered / Unconfirmed
GUEST, unregistred user!
在窗口放一Label和一Timer,双击Timer添加以下代码:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if label1.caption:='Hello world!' then
Label1.Caption:='你好 世界!'
else
label1.Caption:='Hello world!';
end;
end.
但按F9运行时,却提示“Type of expression must be BOOLEAN”,我该怎么办?
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if label1.caption:='Hello world!' then
Label1.Caption:='你好 世界!'
else
label1.Caption:='Hello world!';
end;
end.
但按F9运行时,却提示“Type of expression must be BOOLEAN”,我该怎么办?