‘#’ 单个数字
‘?’ 单个字符
‘*’ 任意字符
[charlist] 字符列表中的单个字符
[!charlist] 非字符列表中的单个字符

举例:
“#123” LIke “#23” True
(但是“#23” LIke “#123” False)
“Hello” Like “H?llo” True
“Hello” Like “H*” True
“X” Like “[D-Z]” False
“X” LIke “[!D-Z]” False
代码实际演示:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click Dim result As Boolean result = "1123" Like "#123" Label1.Text =
result End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click Dim result As Boolean result = "#123" Like "1123" Label1.Text =
result End Sub

有时间需要认真总结一下vb的字符串比较问题,比如vb变量不区分大小写,字符串区分吗?
Like, equals()、compareTo、直接相等(‘=’单等号的用法,‘==’ 双等号的用法),有什么区别具体怎么用

技术
©2019-2020 Toolsou All rights reserved,
vue项目中对axios的全局封装单个按键控制多种流水灯状态软件测试之BUG描述随机森林篇 R语言实现TP6验证器的使用示例及正确验证数据C语言编程之查找某学号学生成绩一文揭秘阿里、腾讯、百度的薪资职级c语言的5种常用排序方法2021年1月程序员工资统计,平均14915元Bug数能否做为技术人员考核的KPI?