CompareMethod Enumeration 

Indicates how to compare strings when calling comparison functions.

Remarks

When you call comparison functions, you can use the CompareMethod enumeration in your code in place of the actual values. The Compare argument takes the CompareMethod enumeration members.

Members

Member Constant Description

Binary

vbBinaryCompare

Performs a binary comparison.

Text

vbTextCompare

Performs a textual comparison.

Requirements

Namespace: Microsoft.VisualBasic

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Tasks

How to: Refer to an Enumeration Member

Reference

Filter Function (Visual Basic)
InStr Function (Visual Basic)
InStrRev Function (Visual Basic)
Replace Function (Visual Basic)
Split Function (Visual Basic)
StrComp Function (Visual Basic)

Concepts

Intrinsic Constants and Enumerations
When to Use an Enumeration