CompareMethod CompareMethod CompareMethod CompareMethod Enum

Definition

Indicates how to compare strings when calling comparison functions.

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

Fields

Binary Binary Binary Binary 0

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

Text Text Text 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