VBScript constant: vbTextCompare
- Updated2024-09-12
- 1 minute(s) read
Constants > Various Constants > VBScript constant: vbTextCompare
VBScript constant: vbTextCompare
Provides a constant for a text comparison in methods like StrComp, Instr, InstrRev, Split and Filter.
Object.vbTextCompare
Object | VBS The constant belongs to the VBS functionality. You do not need to specify this object. |
Object.vbTextCompare | Variant 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))