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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.