Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CompareMethod Enum

Definition

Namespace:
Microsoft.VisualBasic
Assembly:
Microsoft.VisualBasic.Core.dll
Assembly:
Microsoft.VisualBasic.dll
Source:
Globals.vb
Source:
Globals.vb
Source:
VBMath.vb

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Indicates how to compare strings when calling comparison functions.

public enum class CompareMethod
public enum CompareMethod
type CompareMethod = 
Public Enum CompareMethod
Inheritance
CompareMethod

Fields

Name Value Description
Binary 0

Performs a binary comparison. This member is equivalent to the Visual Basic constant vbBinaryCompare.

Text 1

Performs a textual comparison. This member is equivalent to the Visual Basic constant vbTextCompare.

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.

For details on binary and text comparisons, see Option Compare Statement.

Applies to

See also


Feedback

Was this page helpful?