【发布时间】:2019-10-23 10:16:11
【问题描述】:
我想知道我是否可以创建一个 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
【问题讨论】:
标签: vba
我想知道我是否可以创建一个 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
【问题讨论】:
标签: vba
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
【讨论】: