有14个Label,一个计数器count=1
如何通过count来调用这14个label
label[count]不行
form1.labels[count]也不行怎么办?
如何通过count来调用这14个label
label[count]不行
form1.labels[count]也不行怎么办?
解决方案 »
- Delphi查找重复字符串,不是指定的字符串,是要把所有的字符串都互相比较看有没有重复的
- 本鲨写的个人收支管理小程序 带源码
- 在線等待,對大家而言,是一個很膚淺的問題!~~~
- 请问在帮助哪里可以找到可以重载的消息类型?
- 显示模式窗体出错
- 请教一个关于获得字符串位置的问题?
- DateTimePicker1??的问题!
- dll 调试问题
- SMC!全新改版聊天软件
- strtotime('00:30:00')爲啥不能得到tdatetime的結果?俺收到的是'0'
- 大家都来说说所用的delphi的版本!!评出目前最好的
- 555分没有了,诚心问个问题,给DBGrid1.Columns[4].PickList赋值时为什么不分行显示?
var
Elabel :array[1..12] of Tlabel;
i:integer;
begin
for i:=1 to 12 do
begin
Elabel[i]:=Tlabel.Create(Self);
Elabel[i].Parent:=Form1;
Elabel[i].Top:=i*20;
Elabel[i].Left:=20;
Elabel[i].Caption:='Elabel'+inttostr(i);
end;
end;
var
i:integer;
begin
for i:=0 to ControlCount-1 do
begin
if Controls[i].ClassType=TLabel then
begin
//TLabel(Controls[i]).Caption:='ArrayLabel['+IntToStr(i)+']';
end;
end;
end;