ActiveReports 12
StrComp Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace > Strings Class : StrComp Method
Required. Any valid String expression.
Required. Any valid String expression.
Optional. Specifies the type of string comparison. If compare is omitted, the Option Compare setting determines the type of comparison.
Returns -1, 0, or 1, based on the result of a string comparison.
Syntax
'Declaration
 
Public Shared Function StrComp( _
   ByVal string1 As String, _
   ByVal string2 As String, _
   Optional ByVal compare As CompareMethod _
) As Integer
public static int StrComp( 
   string string1,
   string string2,
   CompareMethod compare
)

Parameters

string1
Required. Any valid String expression.
string2
Required. Any valid String expression.
compare
Optional. Specifies the type of string comparison. If compare is omitted, the Option Compare setting determines the type of comparison.

Return Value

If string1 sorts ahead of string2, StrComp returns -1. If string1 is equal to string2, StrComp returns 0. If string1 sorts after string2, StrComp returns 1.
See Also

Reference

Strings Class
Strings Members