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 sensitive. If you want to do a case insensitive compare, use Like()
See Also