+ do not search (locate) in an empty dataset

git-svn-id: trunk@4303 -
This commit is contained in:
joost 2006-07-30 00:24:47 +00:00
parent 0a0089a669
commit 21c061421e

View File

@ -827,6 +827,8 @@ begin
// For now it is only possible to search in one field at the same time // For now it is only possible to search in one field at the same time
result := False; result := False;
if IsEmpty then exit;
keyfield := FieldByName(keyfields); keyfield := FieldByName(keyfields);
CheckNull := VarIsNull(KeyValues); CheckNull := VarIsNull(KeyValues);