var
i:integer;
begin
for I := 0 to ComponentCount - 1 do
begin
if components[i] is tlablecaption then
begin
if tlablecaption(componets[i]).caption='1' then
begin
label1.caption:='3';
label3.caption:='3';
label5.caption:='3';
end;
end;
end;
end;
在这句当中 ‘tlablecaption’怎么用?var ?:tlablecaption; 还是 USES中加入什么单元?
i:integer;
begin
for I := 0 to ComponentCount - 1 do
begin
if components[i] is tlablecaption then
begin
if tlablecaption(componets[i]).caption='1' then
begin
label1.caption:='3';
label3.caption:='3';
label5.caption:='3';
end;
end;
end;
end;
在这句当中 ‘tlablecaption’怎么用?var ?:tlablecaption; 还是 USES中加入什么单元?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货