用tag属性吧
var
i:integer;
begin
for i:=0 to 10 do
begin
with tedit.create(self) do
begin
parent:=GroupBox1;
name:='edit'+inttostr(i+1);
left:=2+aleft;
width:=43;
top:=10;
tag:=i;
text:='wwwww';
aleft:=left+width;
end;
end;
end;var
aleft,i:integer;
begin
for i:=0 to 10 do
begin
with tlabel.create(self) do
begin
parent:=GroupBox2;
for j:=0 to GroupBox1.controlscount-1 do
if GroupBox1.Controls[j] is TEdit then
if TEdit(GroupBox1.Controls[j]).tag=i then
caption:=TEdit(GroupBox1.Controls[j]).text;
left:=2+aleft;
width:=98;
top:=10;
aleft:=left+width;
end;
end;
end;
var
i:integer;
begin
for i:=0 to 10 do
begin
with tedit.create(self) do
begin
parent:=GroupBox1;
name:='edit'+inttostr(i+1);
left:=2+aleft;
width:=43;
top:=10;
tag:=i;
text:='wwwww';
aleft:=left+width;
end;
end;
end;var
aleft,i:integer;
begin
for i:=0 to 10 do
begin
with tlabel.create(self) do
begin
parent:=GroupBox2;
for j:=0 to GroupBox1.controlscount-1 do
if GroupBox1.Controls[j] is TEdit then
if TEdit(GroupBox1.Controls[j]).tag=i then
caption:=TEdit(GroupBox1.Controls[j]).text;
left:=2+aleft;
width:=98;
top:=10;
aleft:=left+width;
end;
end;
end;
解决方案 »
- 还是一个关于线程的问题,不明白
- 请问在ro的da中能直接使用schema执行execsql代码吗?
- 想写一个ACCESS数据库的C/S的应用程序,练练手.不知道那位天使大哥,大姐有资料没送我份!
- 通过程序调用硬盘上的SQL脚本,运行。
- 谁用过indy的IdTcpServer来处理数据?或做过socket通讯的高手看看,就剩这点分了,头大
- 已经TControl控件有CMHintShow私有方法,怎么能在BUTTON中使用它?
- ADOQuery 查询数据问题!急~~~~
- 若何在Delphi7下使用ServerSocket和ClientSocket
- delphi中怎样调用delphi创建com组件
- 用delphi 开发 jabber客户端
- 如何控制DBGrid在左右滚动时最左边的某几列固定不动?
- 急,有谁会用DBGridEH控件,请进来指导一下。谢谢了
另外,放在同一个循环里面也行啊
简单,
greenwaterbluesky的循环可以吗?试了一下好象有错,再看看吧,既然是高手应该没错的,
如果是在两个FORM里呢?
TLABEL是在第二个FORM 里面生成的
应该差不多吧,快完成了:)
TQReport.create(self);
接下来要动态生成BAND
如何在生成的BAND下面写
parent这一句?