lcl: remove dbctrls.ExtractFieldName since it is not needed anymore (db.ExtractFieldName already implemented)

git-svn-id: trunk@43477 -
This commit is contained in:
blikblum 2013-11-24 23:42:57 +00:00
parent e35c0db3e2
commit f8ca4d297e

View File

@ -1283,10 +1283,6 @@ type
property VisibleButtons;
property Images;
end;
// ToDo: Move this to db.pp
function ExtractFieldName(const Fields: string; var StartPos: Integer): string;
procedure ChangeDataSource(AControl: TControl; Link: TDataLink;
NewDataSource: TDataSource);
@ -1321,17 +1317,6 @@ begin
RegField(AFieldClasses[I]);
end;
function ExtractFieldName(const Fields: string; var StartPos: Integer): string;
var
i: Integer;
begin
i:=StartPos;
while (i<=Length(Fields)) and (Fields[i]<>';') do Inc(i);
Result:=Trim(Copy(Fields,StartPos,i-StartPos));
if (i<=Length(Fields)) and (Fields[i]=';') then Inc(i);
StartPos:=i;
end;
procedure ChangeDataSource(AControl: TControl; Link: TDataLink;
NewDataSource: TDataSource);
begin