Xbasic
EXPRESSION_COMMON_FILTER_ELIMINATE Function
Syntax
New_Filter_String as C = EXPRESSION_COMMON_FILTER_ELIMINATE( C expression)
Arguments
- New_Filter_String
A simplified version of Old_Filter_String.
- expression
A character filter expression that evaluates to a logical value and filters records in a query.
Description
Simplify the filter expression if possible.
Example
filter = "state = 'ma' .and. state = 'ma'" expression_common_filter_eliminate(filter) -> "state = 'ma'", because both clauses are the same filter = "state = 'ma' .and. state = 'cd'" expression_common_filter_eliminate(filter) -> "state = 'ma' .and. state = 'cd'"
See Also