for I := 0 to 71 do
begin
if Components[I] is TEdit Then //判断该Component是否为Edit
begin (Components[I] as TEdit).Text := IntToStr(I) ;
end;//if Components[I] is TCheckBox
end;//for I
begin
if Components[I] is TEdit Then //判断该Component是否为Edit
begin (Components[I] as TEdit).Text := IntToStr(I) ;
end;//if Components[I] is TCheckBox
end;//for I
解决方案 »
- 各位大哥:水晶报表ireport对象使用printout报错,有谁能帮帮我
- ADOQuery 主从表一些操作问题,请兄弟们解决下,谢了。在线...
- 如何将一个打印机名称默认为当前打印机?并且刷新打印机属性(如纸张大小)?
- 各位大哥:我下载的DELPHI6怎么没有Data Contral 和Data Access控件?
- 如何用delphi实现检测局域网机器的ip,机器名,网络连接状态服务性质
- 问题简单但我不会。 ^oo^ 那位高手给帮帮忙。delphi 的
- 请问windows xp 升级sp1后怎么激活呀!!???
- 用DELPHI怎样实现检测主板的系列号,100分
- 到底专家分是怎么算的啊!
- delphi调用VC的DLL,传入char* 对char*中的内容进行更改
- 急问:如何处理两义性的问题。
- 关于网络数据库的问题——急-好急!
i:integer;
begin
for i:=0 to self.ComponentCount -1 do
if self.Components[i] is TEdit then
TEdit(self.Components[i]).text:='OK';
兄弟,拜托,多给点分吧,才20分很打消大家的积极性的,虽然这分没有什么用!
if Components[i] is TEdit then
...
begin
TEdit(Findcomponent('edit'+inttostr(i)).caption:='名字';//edit1,edit2..为控件的name;
end;