Unit BDEFiltr |
Classes |
TFormFilterCallback - 0 for False, 1 for True
Functions |
CodeFilterApply - CodeFilterDrop()
CodeFilterDrop - Filter handle to set
GetTableCursor()
OnlyEvenRecords - 0 for False, 1 for True
Filter information for the specific entry } { This function demonstrates accessing information from the callback without
using the structure -- the physical record number is used instead
OnlyOddRecords - 0 for False, 1 for True
OnlyEvenRecords() } { This function demonstrates accessing information from the callback without
using the structure -- the physical record number is used instead
TextInRecord - True if the passed filter was dropped
OnlyOddRecords() } { This function demonstrates accessing information from the callback structure
by calling dbiGetCursorProps to determine the length of the record buffer,
and by moving the record buffer into a string for the Pos() function
Types |
Constants |
Variables |
Functions |
Filter information for the specific entry } { This function demonstrates accessing information from the callback without using the structure -- the physical record number is used instead
OnlyEvenRecords() } { This function demonstrates accessing information from the callback without using the structure -- the physical record number is used instead
OnlyOddRecords() } { This function demonstrates accessing information from the callback structure by calling dbiGetCursorProps to determine the length of the record buffer, and by moving the record buffer into a string for the Pos() function
Types |
dbiCodeFilter = function( lFilterCB : longint; { Pointer to the Client data } pRecBuf : pByte; { Record buffer pointer to examine } lPhyRecNum : longint { Physical record number for dBASE tables Sequential record number for Paradox } ) : smallint {$IFDEF WIN32}stdcall{$ENDIF}Any object to attach to the filter
dbiFilterCB = recordAs long as the cursor is passed, anything else can also be declard in this structure. Just be sure to initialize the values first.
hCursor : hDBICur;
sFind : string;
bCaseSensitive : boolean;
oCargo : TObject;
end;
Constants |
Variables |