Creating Filters
|
Previous Top Next |
· | Set the Filter property. Filter is especially useful for creating and applying filters at runtime.
|
· | Write an OnFilterRecord event handler for simple or complex filter conditions. With OnFilterRecord, you specify filter conditions at design time. Unlike the Filter property, which is restricted to a single string containing filter logic, an OnFilterRecord event can take advantage of branching and looping logic to create complex, multi-level filter conditions.
|
Operator
|
Meaning
|
<
|
Less than
|
>
|
Greater than
|
>=
|
Greater than or equal to
|
<=
|
Less than or equal to
|
=
|
Equal to
|
<>
|
Not equal to
|
AND
|
Tested statements are both True
|
NOT
|
Tested statement is not True
|
OR
|
At least one of two statements tested is True
|
[NOT] LIKE
|
TRUE if the operand matches a pattern with '%', '_' wildcards.
|
IS [NOT] NULL
|
TRUE if Boolean expression is UNKNOWN
|
IN
|
TRUE if the operand is equal to one of a list of expressions.
|
BETWEEN
|
TRUE if the operand is within a range.
|
Value
|
Meaning
|
foCaseInsensitive
|
Ignore case when comparing strings.
|
foPartialCompare
|
Disable partial string matching (i.e., do not match strings ending with an asterisk (*)).
|
FilterOptions := [foCaseInsensitive];
|
Filter := 'State = ' + QuotedStr('CA');
|