Click or drag to resize

RuntimeState.StringCompareCollation Method

X#
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
Request Example View Source

Parameters

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:
-1LHS precedes RHS in the sort order.
0LHS occurs in the same position as RHS in the sort order.
1LHS 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]