GetQueryBit

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

GetQueryBit

Declaration

function GetQueryBit( lRecNum : LongInt ) : WordBool;

Description

Get the setting of a bit that maps to a record number in an existing bitmap.

Parameters

lRecNum: The record number of the bit that is being set. It must be > 0 and <= RecCount.

Return Value

TRUE if the bit is set and FALSE if not.

Return Value

// Sets a Query, moves to a specific record and tests if the record was in the query condition or not 

with ApTbl do

begin

 Query( 'STATE="CA"' ); 

 if GetQueryBit( RecNo ) then 

         ShowMessage( 'Record is in the query.' ) 

 else 

         ShowMessage( 'Record is NOT in the query.' ); 

end;

See Also

SetQueryBit, RYOFilterSetBit, Query