function checkthechar(thechar,thestring)
' thechar="要检测的字符串".
' thestring="待检测的字符串".
if instr(thestring,thechar) then
for n =1 to len(thestring)
if mid(thestring,n,len(thechar))=thechar then
checkthechar=checkthechar+1
end if
next
checkthechar="这个字符"&checkthechar&"次"
else
checkthechar="0次"
end if
end function
如对本文有疑问, 点击进行留言回复!!
2020最新版vscode格式化代码(wsdchong配置使用介绍)
网友评论