DIAdem Help

Content Type
Programming Language
Current manual

VBScript constant: vbTextCompare

VBScript constant: vbTextCompare

Provides a constant for a text comparison in methods like StrComp, Instr, InstrRev, Split and Filter.

Object.vbTextCompare
ObjectVBS
The constant belongs to the VBS functionality. You do not need to specify this object.
Object.vbTextCompareVariant with read access
vbTextCompare has the value 1.

The following example carries out a text comparison and a binary comparison:

Dim MyTxt
MyTxt="Hello world"
Call MsgBox(InStr(1,MyTxt,"World",vbTextCompare))
Call MsgBox(InStr(1,MyTxt,"World",vbBinaryCompare))

See Also

Objects Overview

In This Section
Was this information helpful?