首页 > 开发 > 综合 > 正文

VB PDU US2 编码

2024-07-21 02:20:51
字体:
来源:转载
供稿:网友
public function ascg(smsg as string) as string
dim si, sb as integer
dim stmp as integer
dim stemp as string
sb = len(smsg)
ascg = ""
for si = 1 to sb
stmp = ascw(mid(smsg, si, 1))
if abs(stmp) < 127 then
stemp = "00" & hex(stmp)
else
stemp = hex(stmp)
end if
ascg = ascg & stemp
next si
ascg = trim(ascg)
end function


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