CompareMethod Enum
Definition
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
Fields
Name | Value | Description |
---|---|---|
Binary | 0 | Performs a binary comparison. This member is equivalent to the Visual Basic constant |
Text | 1 | Performs a textual comparison. This member is equivalent to the Visual Basic constant |
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
- Filter(String[], String, Boolean, CompareMethod)
- InStr(String, String, CompareMethod)
- InStrRev(String, String, Int32, CompareMethod)
- Replace(String, String, String, Int32, Int32, CompareMethod)
- Split(String, String, Int32, CompareMethod)
- StrComp(String, String, CompareMethod)
- Constants and Enumerations
- When to Use an Enumeration
- How to: Refer to an Enumeration Member