1,451
社区成员
发帖
与我相关
我的任务
分享
Dim tmpResult As Long
Dim bytes(0 To 3) As Byte
tmpResult = Module1.ReadUserCard()
CopyMemory bytes(0), tmpResult, 4
'MsgBox tmpResult
Dim str As String
'str = ByteToString(bytes)
str = StrConv(bytes, vbUnicode)
Me.Text1.Text = str
--------------------------------
Public Function ByteToString(ByRef bytIn() As Byte) As String
Dim i As Long
Dim strRet As String
strRet = ""
For i = 0 To UBound(bytIn) - 1
strRet = strRet & Chr(bytIn(i))
Next
ByteToString = strRet
End Function