呵呵,突然想到的,怎么用VB实现啊?大家都来说 说

解决方案 »

  1.   

    Private Sub Command1_Click()
        'a = "a12a2a2a2a2a124542"
        a = "1222212中12121212"    If LenB(StrConv(a, 128)) <> Len(a) Then        MsgBox "yes"
        Else
            MsgBox "no"
        End IfEnd Sub
      

  2.   

    另外一种方法,For i = 1 To Len(s)
        If Asc(Mid(s, i, 1)) < 0 Or Asc(Mid(s, i, 1)) > 255 Then MsgBox  "有中文"
    Next