mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 19:10:18 +02:00
* Patch from Perdhevi/Lacak2 to improve keyfields existence.
Fixes code part of mantis #15286, which turns into a documentation issue now. git-svn-id: trunk@21281 -
This commit is contained in:
parent
642a180809
commit
2ae09dc995
@ -705,8 +705,9 @@ begin
|
||||
tmpActive := FLookupDataSet.Active;
|
||||
try
|
||||
FLookupDataSet.Active := True;
|
||||
FFields.CheckFieldNames(FLookupKeyfields);
|
||||
FLookupDataset.FieldByName(FLookupresultField); // I presume that if it doesn't exist it throws exception, and that a field with null value is still valid
|
||||
FFields.CheckFieldNames(FKeyFields);
|
||||
FLookupDataSet.Fields.CheckFieldNames(FLookupKeyFields);
|
||||
FLookupDataset.FieldByName(FLookupResultField); // I presume that if it doesn't exist it throws exception, and that a field with null value is still valid
|
||||
LookupList.Clear; // have to be F-less because we might be creating it here with getter!
|
||||
|
||||
FLookupDataSet.DisableControls;
|
||||
|
Loading…
Reference in New Issue
Block a user