E
emilchan
Unregistered / Unconfirmed
GUEST, unregistred user!
有这样一段代码,想实现点BOTTON在lable1里显示时间:
procedure TForm1.button1Click(Sender:TObject);
begin
Lable1.Caption:='当前时间';
Lable2.Caption:=TimeToStr(Time);
Lable1.Visible:=true;
Lable2.Visible:=true:
end;
但却告诉我[Error] Unit1.pas(36): Undeclared identifier: 'Lable1',怎么回事??
procedure TForm1.button1Click(Sender:TObject);
begin
Lable1.Caption:='当前时间';
Lable2.Caption:=TimeToStr(Time);
Lable1.Visible:=true;
Lable2.Visible:=true:
end;
但却告诉我[Error] Unit1.pas(36): Undeclared identifier: 'Lable1',怎么回事??