代码如下:
procedure TForm1.color1Click(Sender: TObject);
begin
if TColorDialog.execute then
Memo1.Font.color:=TColorDialog.Color;
end;
出现了错误:
[Pascal Error] Unit1.pas(125): E2076 This form of method call only allowed for class methods什么原因,怎么解决啊?
procedure TForm1.color1Click(Sender: TObject);
begin
if TColorDialog.execute then
Memo1.Font.color:=TColorDialog.Color;
end;
出现了错误:
[Pascal Error] Unit1.pas(125): E2076 This form of method call only allowed for class methods什么原因,怎么解决啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货