首页 > 开发 > 综合 > 正文

VB PDU mode UCS2 解码

2024-07-21 02:20:53
字体:
来源:转载
供稿:网友
菜鸟学堂:
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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表