打印本文 打印本文 关闭窗口 关闭窗口
VB PDU mode UCS2 解码
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1000  更新时间:2009/4/23 15:42:02  文章录入:mintao  责任编辑:mintao

    Dim tep As String
    Dim temp As String
    Dim i As Integer
    Dim B As Integer
    tep = rmsg
    i = Len(tep)
    If i < 1 Then Exit Function
   
    B = i / 4
    If i = B * 4 Then

     tep = Left(tep, B * 4)
    Else
       B = B - 1
     tep = Left(tep, B * 4)
    End If
    chg = ""
    For i = 1 To B
     temp = "&H" & Mid(tep, (i - 1) * 4 + 1, 4)
     chg = chg & ChrW(CInt(Val(temp)))
    Next i

打印本文 打印本文 关闭窗口 关闭窗口