看看问题300 + 解决问题另外300 = 600(300分)

  • 主题发起人 Another_eYes
  • 开始时间
愿闻其详。
 
easy
please see code below
function UniqueName(const BaseName:string):string;
var
I:Integer;
Fmt:string;
begin
if BaseName[1] in ['t','T'] then
Fmt:=Copy(BaseName,2,255)+'%d'
else Fmt:=BaseName+'%d';
for I:=1 to High(Integer) do begin
Result:=Format(Fmt,);
if Form.FindComponent(Result)=nil then Exit;
end;
end;
basename is classname of the control you added;
 
可否请龙王给赏几百分,论积分我算得上是个乞丐了!!!
 
我对energy &Hotdog非常敬佩!等我忙完这段时间,再和everybody一起专注吧!
 
你是大款!^_^
 
哎!Delphi5里就有一个TFrame具有这样的功能,并且还不错,为何还要自己写。
找原代码看看就可以。
 
to Another_eYes:

现在还需要答案吗?
 
太长了,先结束吧
 

Similar threads

I
回复
0
查看
671
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
575
import
I
顶部