StringType.StrCmp(String, String, Boolean) Method   
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.
Compares two strings.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
 static int StrCmp(System::String ^ sLeft, System::String ^ sRight, bool TextCompare);public static int StrCmp(string? sLeft, string? sRight, bool TextCompare);public static int StrCmp(string sLeft, string sRight, bool TextCompare);static member StrCmp : string * string * bool -> intPublic Shared Function StrCmp (sLeft As String, sRight As String, TextCompare As Boolean) As IntegerPublic Function StrCmp (sLeft As String, sRight As String, TextCompare As Boolean) As IntegerParameters
- sLeft
- String
Required. String to compare with sRight.
- sRight
- String
Required. String to compare with sLeft.
- TextCompare
- Boolean
Required. True to perform a case-insensitive comparison; otherwise False.
Returns
| Value | Condition | 
|---|---|
| zero | The two strings are equal. | 
| less than zero | sLeftis less thansRight. | 
| greater than zero | sLeftis greater thansRight. | 
Remarks
This class supports the Visual Basic compiler and is not intended to be used directly from your code.