VBA

所属分类:其他小程序
开发工具:VBA
文件大小:7KB
下载次数:33
上传日期:2008-05-09 11:09:32
上 传 者funtionvon
说明:   最简单的方法判断一个字符串中是否有汉字 VBA中默认英文字符串都是Unicode,双字节,如果转化为vbFromUnicode就变成单字节, 汉字还是双字节,如果转换之前的字符长度与转化之后的字节长度相等(LenB是计算字符的字节长度的函数), 说明不含中文字符,反之含有中文字符。
(The simplest way to judge whether a string of Chinese characters have VBA in the default English strings are Unicode, double byte, if it becomes vbFromUnicode into single-byte, or double-byte characters, if characters in length prior to conversion and transformation byte after the same length (LenB is calculated byte characters in length function), indicating that non-Chinese characters, on the contrary contain Chinese characters.)

文件列表:
VBA.xls (25600, 2007-07-05)

近期下载者

相关文件


收藏者