TestString
Use this method to test a particular search string (Format String) against an arbitrary text, using the settings assigned to that specific Format String.
The method returns the distance value. The distance calculates as follows:
StrLength-MatchedSubstrLength)/StrLength.
0.0 means that the exact search string was found.
1.0 means that not even a partial match was found.
Note: The considered
MatchedSubstrLength
is the one with the maximum length in
the format string expression. Syntax
TestString(bstrText as String, nFormatIndex as Long, pFormatSettings as SCBCdrFormatSettings) as Single
Description | Definition |
---|---|
bstrText | The string to test against the Format String. |
nFormatIndex | Zero-based index of the Format String list. |
pFormatSettings | The settings of the specific Format String.
See SCBCdrFormatSettings for more information. |