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.19
Syntax FUNCTION Like(
sWildCard AS STRING,
sSource AS STRING
) AS LOGIC
public static bool Like(
string sWildCard,
string sSource
)
Request Example
View SourceParameters
- 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:
LogicRemarks 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