51Testing软件测试论坛

标题: 关于vbs中文字符查找的问题 [打印本页]

作者: sunnyswu    时间: 2010-12-8 19:56
标题: 关于vbs中文字符查找的问题
strs = "东东你在哪里?"
msgbox Instr(str, "你")
作者: TIB    时间: 2010-12-8 21:25
strs = "东东你在哪里?"
msgbox Instr(strs, "你")
作者: sunnyswu    时间: 2010-12-8 21:58
回复 2# TIB

谢谢!
自己动手丰衣足食!

strs = "东东你在 哪里?"
msgbox escape(" ")& " " & unescape(escape("?"))
msgbox escape(strs)

strIdx = Instr(escape(strs), escape("你"))
remainStrUnicode = mid(escape(strs), strIdx)
msgbox unescape(remainStrUnicode)




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2