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 -> int
Public Shared Function StrCmp (sLeft As String, sRight As String, TextCompare As Boolean) As Integer
Public Function StrCmp (sLeft As String, sRight As String, TextCompare As Boolean) As Integer
Parameters
- 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 |
sLeft is less than sRight .
|
greater than zero |
sLeft is greater than sRight .
|
Remarks
This class supports the Visual Basic compiler and is not intended to be used directly from your code.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om