Distance
This method performs the selected string compare algorithm. You must first initialize the search expression and the compare method. The return value is the distance between the search expression and the string parameter, which is between 0.0 and 1.0. A distance of 0.0 means that the search expression matches the string parameter exactly and a distance of 1.0 means that there is no match at all. Most algorithms can also return a value between 0.0 and 1.0, which provides the possibility to compare strings in a fault tolerant way.
Syntax
Distance (String as String, Distance as Double)
Parameter | Description |
---|---|
String | The string to compare with the search expression. |
Distance | [out] Distance of the compare operation.
Possible values Any value between 0.0 and 1.0. |