Comparison Constants

The comparison constants are used by a number of functions (Filter, StrComp, Split, and Replace), as well as by the CompareMode property of the Dictionary object, to determine whether a string comparison should be case-sensitive or not:

Constant

Value

Description

vbBinaryCompare

0

Binary (case-sensitive comparison)

vbTextCompare

1

Text (case-insensitive comparison)

vbDatabaseCompare

2

Database (unused in VBScript)

Get VBScript in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.