<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods > RYOFilterCopy |
Declaration
function RYOFilterCopy : Integer;
Description
Copies the existing filter bitmap to the linked list of RYOFilter bitmaps. The existing filter bitmap may be the result of an Query operation.
Return Value
Returns an integer handle that will subsequently identify this bitmap in further RYOFilter operations. If the result is zero, the operation failed.
Delphi Example
// Create bitmap containing next five records
hBitMap := ApTbl.RYOFilterCreate;
for i := 1 to 5 do
begin
ApTbl.RYOFilterSetBit( hBitMap, ApTbl.RecNo, True );
ApTbl.Skip( 1 );
end;
// Save this bitmap to linked list for later use
iSaved := ApTbl.RYOFilterCopy;
C++Builder Example
// Create bitmap containing next five records
hBitMap = ApTbl->RYOFilterCreate();
for (i = 0; i < 5; i++)
{
ApTbl->RYOFilterSetBit( hBitMap, ApTbl->RecNo, true );
ApTbl->Skip( 1 );
}
// Save this bitmap to linked list for later use
iSaved = ApTbl.RYOFilterCopy();
See Also
RYOFilterActivate, RYOFilterCreate, RYOFilterDestroy, RYOFilterRestore, RYOFilterSave, RYOFilterSetBit