当前位置: 移动技术网 > IT编程>开发语言>其他编程 > 如何正确显示数据库里同时存在的GB码和BIG5码?

如何正确显示数据库里同时存在的GB码和BIG5码?

2017年12月08日  | 移动技术网IT编程  | 我要评论

public function checkbig(strsource as string) as boolean
dim idx as long
dim bytetemp() as byte
checkbig = false
for idx = 1 to len(strsource)
    bytetemp = strconv(mid(strsource, idx, 1), vbfromunicode)
    if ubound(bytetemp) > 0 then
        if (bytetemp(1) >= 64) and (bytetemp(1) <= 126) then
            checkbig = true
            exit for
        end if
    end if
next idx
end function

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网