VbCompareMethod

Text comparison modes used by string functions such as InStr, InStrRev, Replace, StrComp, Filter, and Split.

Constant Value Description
vbBinaryCompare 0 Performs a binary comparison.
vbTextCompare 1 Performs a textual comparison.
vbDatabaseCompare 2 Accepted for source compatibility. Compares as vbTextCompare — see the note below.

Note

vbDatabaseCompare has no distinct behaviour in twinBASIC. Within Microsoft Access it selects the sort order recorded in the database; outside that host there is no database to consult, so twinBASIC accepts the constant and performs a case-insensitive comparison — the same result as vbTextCompare.