Click or drag to resize

Like Function

X#
Determine if a string matches a wildcard pattern (like the wildcard pattern for the DIR command in the OS).

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION Like(
	sWildCard AS STRING,
	sSource AS STRING
) AS LOGIC
Request Example View Source

Parameters

sWildCard
Type: String
The wildcard to use. '*' matches 0 or more characters until the next non-wildcard character, '?' matches any character, all other characters must match exactly.
sSource
Type: String
The string to examine.

Return Value

Type: Logic
Remarks
This function is case INsensitive in all dialects except FoxPro. If you want to do a case sensitive compare in these dialects, use _Like()
See Also