Muokkaa

Jaa


StringType.StrCmp(String, String, Boolean) Method

Definition

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