1个回答
2011-06-25 · 知道合伙人软件行家
关注
展开全部
Dim fso
Set fso = CreateObject("scripting.filesystemobject")
Set OpenFile=fso.OpenTextFile("D:\test\unicode.txt",1,True)
sLine = OpenFile.ReadLine()
MsgBox(sLine)
sHex = ""
For i = 1 To Len(sLine)
c = AscW( Mid(sLine,i,1) )
c1 = Hex(c)
MsgBox( c1 & "," & Mid(sLine,i,1) )
sHex = sHex & c
Next
MsgBox( sHex & "," & sLine )
Set fso = CreateObject("scripting.filesystemobject")
Set OpenFile=fso.OpenTextFile("D:\test\unicode.txt",1,True)
sLine = OpenFile.ReadLine()
MsgBox(sLine)
sHex = ""
For i = 1 To Len(sLine)
c = AscW( Mid(sLine,i,1) )
c1 = Hex(c)
MsgBox( c1 & "," & Mid(sLine,i,1) )
sHex = sHex & c
Next
MsgBox( sHex & "," & sLine )
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询