Bean Software                                            Bean  Software Search Control

        Documentation
  Intro
  Properties and methods
  Tutorial
  Get it now
Support e-mail

 


TypeOfSearch Property

Description: This property can have four different values:

  1. AnyWord - control creates query that returns records which contain any of the search terms
  2. AllWords - returns only the records that contain all requested words
  3. ExactPhrase - returns the records that contains exact string, including spaces.
  4. SearchExpression - this type of searching is similar to Google's. User can insert something like “(apple or banana) and not kiwi”. Returned records will be correct for person who likes apples or bananas but not kiwi. This search option is customizable and you can set keywords “AND” “OR” and “NOT” to your language.


Data type: enuTypeOfSearch
Default value: enuTypeOfSearch.ExactPhrase
Example: 
To return database table rows that contains any of search words use:
 
   SearchControl1.TypeOfSearch = enuTypeOfSearch.AnyWord;