lcl: remove TDBLookup.ListFieldValue. Is not used anymore

git-svn-id: trunk@34083 -
This commit is contained in:
blikblum 2011-12-10 13:55:27 +00:00
parent fa1ad856db
commit 3b2f0d4e32
2 changed files with 0 additions and 32 deletions

View File

@ -157,7 +157,6 @@ Type
destructor Destroy; override;
procedure Initialize(AControlDataLink: TFieldDataLink; AControlItems: TStrings);
function KeyFieldValue: Variant;
function ListFieldValue: string;
procedure UpdateData(ValueIndex: Integer);
function GetKeyValue(ValueIndex: Integer): Variant;
function GetKeyIndex(const AKeyValue: Variant): Integer;

View File

@ -336,37 +336,6 @@ begin
Result := Null;
end;
function TDBLookup.ListFieldValue: string;
var
Key: Variant;
begin
Result := '';
if not (Assigned(FControlLink) and (FDataFieldNames<>'') and
Assigned(FListField) and FControlLink.Active) then
Exit;
Key := FControlLink.DataSet.FieldValues[FDataFieldNames];
if FHasLookupField then
begin
if (FLookupCache and not FLookUpFieldIsCached) then
Result := FLookupList.ValueOfKey(Key)
else
Result := FControlLink.Field.AsString;
Exit;
end;
if FLookupCache then
begin
Result := FLookupList.ValueOfKey(Key);
Exit;
end;
LinkGetBookMark;
try
if FListLink.DataSet.Locate(FKeyFieldNames, Key, []) then
Result := FListField.AsString;
finally
LinkGotoBookMark;
end;
end;
procedure TDBLookup.UpdateData(ValueIndex: Integer);
var
I: Integer;