Using a Full-text Index at Run-time
See also |
Previous Top Next |
1. | Place at TdbTable component for both the table your are searching in and the helper keyword table on your form.
|
|
2. | Set the FullTextTable property of the first table component to the second table component.
|
|
3. | At design-time or at run-time set the FilterType property of the first table component to tftKeywords.
|
|
4. | At design-time or at run-time set the Filter property of the first table component to the keyword or the full-text expression your are looking for. E.g. set:
|
Filter := 'Borland';
|
The syntax for keyword filter expressions is explained in "Full-Text Search-Conditions".
|
|
|
5. | Now you can work with this filter like you are used to from normal filters. You may employ the FindFirst, FindNext, FindPrior and FindLast methods to locate the record or you can just set the Filtered property to True.
|