Filters
Chapter Updated 06/24/25
| Method | Description | Parms |
|---|---|---|
| xbFilter( xbDbf *dbf ) | Constructor | Pointer to main xbase structure. |
| ~xbFilter() | Destructor | |
| xbInt16 Set( xbString &sFilterExpression ) xbInt16 Set( xbString &sFilterExpression, xbIx *ix, void *vpTag ) | Set filter | sFilterExpression - Filter Expression (AGE > 27). xbIx - Pointer to optional index file if using an index. vpTag - Pointer to optional index tag if using an index. |
| xbInt16 SetIxTag( xbIx *ix, void *vpTag ) xbInt16 SetIxTag( const xbString &sTagName ) |
Set index on a given filter. | xbIx - Pointer to index file. vpTag - Pointer to index tag. sTagName - Tag Name. |
| xbInt16 GetFirstRecord( xbInt16 iOpt = XB_ACTIVE_RECS ) | Get the first qualified record (not indexed). | |
| xbInt16 GetNextRecord ( xbInt16 iOpt = XB_ACTIVE_RECS ) | Get the next qualified record (not indexed). | |
| xbInt16 GetPrevRecord ( xbInt16 iOpt = XB_ACTIVE_RECS ) | Get the previous qualified record (not indexed). | |
| xbInt16 GetLastRecord ( xbInt16 iOpt = XB_ACTIVE_RECS ) | Get the last qualified record (not indexed). | |
| void SetLimit( xbInt32 ulLimit ) | Set the max unmber of records limit. | |
| xbInt32 GetLimit() const | Get the current MaxLimit setting. | |
| void ResetQryCnt() | Rest the limit counter. | |
| xbInt32 GetQryCnt() const | Return the current query count. | |
| xbInt16 Find( const xbString &sKey, xbInt16 iOpt = XB_ACTIVE_RECS ) xbInt16 Find( const xbDate &dtKey, xbInt16 iOpt = XB_ACTIVE_RECS ) xbInt16 Find( const xbDouble &dKey, xbInt16 iOpt = XB_ACTIVE_RECS ) |
Find a filtered record for a given index key. |
sKey - String Key. dtKey - Date Key. dKey - Numeric (xbDouble) Key. iOpt - is one of XB_ACTIVE_RECS, XB_ALL_RECS, XB_DELETED_RECS |
| xbInt16 GetFirstRecordIx( xbInt16 iOpt = XB_ACTIVE_RECS ) | Get the first qualified record for specified index key. | |
| xbInt16 GetNextRecordIx ( xbInt16 iOpt = XB_ACTIVE_RECS ) | Get the first qualified record for specified index key. | |
| xbInt16 GetPrevRecordIx ( xbInt16 iOpt = XB_ACTIVE_RECS ) | Get the first qualified record for specified index key. | |
| xbInt16 GetLastRecordIx ( xbInt16 iOpt = XB_ACTIVE_RECS ) | Get the first qualified record for specified index key. |
