IDE: using underscore for new components with numbers at end

git-svn-id: trunk@16361 -
This commit is contained in:
mattias 2008-09-01 21:35:04 +00:00
parent 0258b583f2
commit 5ed7fa3a72

View File

@ -2390,6 +2390,8 @@ begin
Result:=AClassName;
if (length(Result)>1) and (Result[1]='T') then
Result:=RightStr(Result,length(Result)-1);
if Result[length(Result)] in ['0'..'9'] then
Result:=Result+'_';
Result:=Result+IntToStr(i);
while (j>=0)
and (CompareText(Result,OwnerComponent.Components[j].Name)<>0) do