Functions.Like 方法 | |
Determine if a string matches a wildcard pattern (like the wildcard pattern for the DIR command in the OS).
命名空间:
XSharp.Core
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 FUNCTION Like(
sWildCard AS STRING,
sSource AS STRING
) AS LOGIC
public static bool Like(
string sWildCard,
string sSource
)
查看代码参数
- sWildCard
- 类型: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
- 类型:String
The string to examine.
返回值
类型:
Boolean备注 This function is case INsensitive in all dialects except FoxPro.
If you want to do a case sensitive compare in these dialects, use _Like()
参见