Delphi7 控件+变量FindComponent()语句错误
zgc.form1.(FindComponent('label'+IntToStr(x))astlabel).caption:=form2.Edit1.Text;错在哪里...
zgc.form1.(FindComponent('label'+IntToStr(x)) as tlabel).caption:= form2.Edit1.Text;
错在哪里了?
变量都定义了,没问题
[错误] DHK.pas(52): Identifier expected but '(' found
[错误] DHK.pas(52): Statement expected, but expression of type 'TLabel' found
[致命错误] Project1.dpr(6): Could not compile used unit 'DHK.pas' 展开
错在哪里了?
变量都定义了,没问题
[错误] DHK.pas(52): Identifier expected but '(' found
[错误] DHK.pas(52): Statement expected, but expression of type 'TLabel' found
[致命错误] Project1.dpr(6): Could not compile used unit 'DHK.pas' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询