self.FindComponent是什么? self.FindComponent是什么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在本窗体中找控件,空间的名字是self.FindComponent('tedit1')中的tedit1; for i=1 to 10begin(form1.findcomponent('Label'+inttostr(i)) as TQRLabel).caption:=inttostr(i);end;将窗体中所有的Label的caption设置为i FindComponent方法 对应对象:所有组件声明:function FindComponent(const AName: string): TComponent;功能:FindComponent方法在当前的组件的Components数组中指出给定的组件。被传递给FindComponent中的字符串是被寻找的组件名。例如“Edit1”,“Label1”。FindComponent将返回该组件(如果它存在),否则将返回空。例子://Use FindComponent to obtain another pointer to CheckBoxl procedure TForml.Button4Click(Sender: TObject); var MyComponent: TComponent; begin MyComponent := FindComponent(’CheckBox1’); TCheckBox(MyComponent).Checked := True; end; delphi7无法安装 如果清空变量的值??? 我期望的礼仪 请问我如何将FORM的鼠标滚轮事件发送给FORM上的其它控件? 关于用线程查询,请各位老大讲解???????????????? 临时表有什么优点,在什么时候用它? 为什么在一台机子上做的程序到另一台机子上运行汉字菜单就成了乱码了? 请高手指点 :DLL下的MDIChild问题 Server端调用Client端的interface怎么实现。 细表录入问题: 请问Delphi有没有多态? 望请介绍一个“带有安装选项、可制作中文界面”的安装程序制作工具。
begin
(form1.findcomponent('Label'+inttostr(i)) as TQRLabel).caption:=inttostr(i);
end;
将窗体中所有的Label的caption设置为i