似乎只能这样
dim i as integer
dim CHnum, Ennum
for i=1 to len(text1.text)
if asc(mid(text1.text,i,1))>255 then
Chnum=chnum+1
else
Ennum=Ennum+1
end if
next
msgbox "中文字符有:"& Chnum & "个" & vbcrlf & "英文有"& Ennum & "个"
dim i as integer
dim CHnum, Ennum
for i=1 to len(text1.text)
if asc(mid(text1.text,i,1))>255 then
Chnum=chnum+1
else
Ennum=Ennum+1
end if
next
msgbox "中文字符有:"& Chnum & "个" & vbcrlf & "英文有"& Ennum & "个"
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货