RuntimeState.StringCompareCollation Method | |
Compare 2 strings. This function is used by the compiler for string comparisons.
Namespace:
XSharp
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax STATIC METHOD StringCompareCollation(
strLHS AS STRING,
strRHS AS STRING
) AS LONG
public static int StringCompareCollation(
string strLHS,
string strRHS
)
Request Example
View SourceParameters
- strLHS
- Type: String
The first string . - strRHS
- Type: String
The second string.
Return Value
Type:
Long
This function returns a numeric value to indicate the order in which the strings should be sorted:
-1 | LHS precedes RHS in the sort order. |
0 | LHS occurs in the same position as RHS in the sort order. |
1 | LHS follows RHS in the sort order. |
Remarks
This method only checks for SetCollation and does not check fot SetExact() or the VO13 setting
See Also Reference
[Overload:StringCompare] Overload
[P:CollationMode]