我想知道是否可以创建一个If条件,以检查变量“ a”是否包含字符串“ pass”,然后显示错误消息?
dim a as string
a = textbox1.text
if a = "pass" then
label1.text = "Error: you can't use the word PASS in your password"
end if
答案 0 :(得分:0)
dim a as string
a = textbox1.text
if InStr("fkvnfdpassknfd", "pass") > 0 then
label1.text = "Error: you can't use the word PASS in your password"
end if