Public Function chg(rmsg As String) As String
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 Functionb = 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 iEnd Function这个中文转 unicode码的哪里错了?
为什么我调用的时候出不来啊 数据是空的
连text1.text=ChrW(CInt(Val(1111)))也出不来数据 运行后text1.text里面不显示东西是不是chrw用错了阿
谁给指点一下啊
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 Functionb = 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 iEnd Function这个中文转 unicode码的哪里错了?
为什么我调用的时候出不来啊 数据是空的
连text1.text=ChrW(CInt(Val(1111)))也出不来数据 运行后text1.text里面不显示东西是不是chrw用错了阿
谁给指点一下啊
我做一个发短信的界面,最后要转成pdu格式发送,rmsg是短信的内容,想用chrw提取它的unicode码
上面的是将unicode转中文的