mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-15 10:39:22 +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;
|
destructor Destroy; override;
|
||||||
procedure Initialize(AControlDataLink: TFieldDataLink; AControlItems: TStrings);
|
procedure Initialize(AControlDataLink: TFieldDataLink; AControlItems: TStrings);
|
||||||
function KeyFieldValue: Variant;
|
function KeyFieldValue: Variant;
|
||||||
function ListFieldValue: string;
|
|
||||||
procedure UpdateData(ValueIndex: Integer);
|
procedure UpdateData(ValueIndex: Integer);
|
||||||
function GetKeyValue(ValueIndex: Integer): Variant;
|
function GetKeyValue(ValueIndex: Integer): Variant;
|
||||||
function GetKeyIndex(const AKeyValue: Variant): Integer;
|
function GetKeyIndex(const AKeyValue: Variant): Integer;
|
||||||
|
@ -336,37 +336,6 @@ begin
|
|||||||
Result := Null;
|
Result := Null;
|
||||||
end;
|
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);
|
procedure TDBLookup.UpdateData(ValueIndex: Integer);
|
||||||
var
|
var
|
||||||
I: Integer;
|
I: Integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user