User Tools

Site Tools


setoption_set_fuzzymatch_options_.htm
Navigation:  ABC Library Reference > FuzzyClass > FuzzyClass Methods >====== SetOption (set fuzzymatch options) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetOption(whichoption, value)

blk2blue.jpg

SetOption Set the Ignore Case and Word Only options.
whichoption An integer constant, variable, EQUATE, or expression that specifies which option to set. The equates for these options are located in ABFUZZY.INC. MatchOption:NoCase sets the Ignore Case option. MatchOption:WordOnly sets the Word Only option.
value An integer constant, variable, EQUATE, or expression that specifies the value for the option. A value of one (1 or True) will set the option on; a value of zero (0 or False) will turn the option off. The default value is True.

The SetOption method logically sets one of the two options available for FuzzyMatching. These are Ignore Case and Word Only. When Ignore Case is set the query is case insensitive. Word Only finds the query value only if it is a separate word (denoted by a space directly before and directly after the text.

Return Data Type:     BYTE

Example:

FuzzyMatcher.SetOption(MatchOption:NoCase, 1)   !set for case insensitive search
FuzzyMatcher.SetOption(MatchOption:WordOnly, 0) !turn off word only search
setoption_set_fuzzymatch_options_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1