Bean Software Search Control Documentation   
 
 
     




enuDefaultOperator Enumeration


Description:
Represents the enumeration used for DefaultOperator property. Used if TypeOfSearch property is set to Expression. If Text property of Search Control already contains boolean operator, then DefaultOperator property has no affect to search expression.

Member Name

Description

AND
If no operator specified, boolean operator AND is used.
OR
If no operator specified, boolean operator OR is used.

Example: Text property of Search Control is set to: "apple banana", and DefaultOperator is set to enuDefaultOperator.OR. Search expression is understand as: "apple OR banana", so SQL Query will return rows that contains words "apple" or "banana".

If DefaultOperator proprety is set to enuDefaultOperator.AND, expression "apple banana" is understand as "apple AND banana".

More examples:

Text Property
DefaultOperator
Expression is understand as:
apple banana
AND
apple AND banana
apple banana and apricot
OR
apple OR banana AND apricot
apple or banana
AND
apple OR banana