"Recordset" does not make sense. You probably mean "collection of records." In this case, you can implement it in more than one way.
" " ( , " " ).
, :
function RecordInCollection(const ARecord: TYourRecord; const ACollection: array of TYourRecord): Boolean;
var
Index1: Integer;
begin
Result := False;
for Index1 := Low(ACollection) to High(ACollection) do begin
Result := (ACollection[Index1].StrField = ARecord.StrField) and (ACollection[Index1].IntField = ARecord.IntField);
if Result then Exit;
end;
end;
:
RecordInCollection (Record1, [Record2, Record3, Record4])
[Record2, Record3, Record4].