ActiveReports 12
StrLike Method (Strings)

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace > Strings Class : StrLike Method
Required. Any String expression.
Any String expression conforming to the pattern-matching conventions described in Like Operator (Visual Basic).
Specifies how to compare strings to patterns, according to the CompareMethod Enumeration. Can be vbBinaryCompare for binary comparison or vbTextCompare for comparison based on a case-insensitive text sort order determined by your system's LocaleID value.
Compares the parameters source and pattern and returns the same results as the Like operator.
Syntax
'Declaration
 
Public Shared Function StrLike( _
   ByVal source As String, _
   ByVal pattern As String, _
   ByVal compareOption As CompareMethod _
) As Boolean
public static bool StrLike( 
   string source,
   string pattern,
   CompareMethod compareOption
)

Parameters

source
Required. Any String expression.
pattern
Any String expression conforming to the pattern-matching conventions described in Like Operator (Visual Basic).
compareOption
Specifies how to compare strings to patterns, according to the CompareMethod Enumeration. Can be vbBinaryCompare for binary comparison or vbTextCompare for comparison based on a case-insensitive text sort order determined by your system's LocaleID value.

Return Value

A Boolean value indicating whether or not the string satisfies the pattern. If the value in string satisfies the pattern contained in pattern, result is True. If the string does not satisfy the pattern, result is False. If both string and pattern are empty strings, the result is True.
See Also

Reference

Strings Class
Strings Members