Click or drag to resize

Like Function

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.2a
Syntax
 FUNCTION Like(
	sWildCard AS STRING,
	sSource AS STRING
) AS LOGIC
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: Boolean
Remarks
This function is case INsensitive. If you want to do a case sensitive compare, use _Like()
See Also