mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 00:19:50 +02:00
lcl: remove TDBLookup.ListFieldValue. Is not used anymore
git-svn-id: trunk@34083 -
This commit is contained in:
parent
fa1ad856db
commit
3b2f0d4e32
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user