麻将祝福语大全八个字:vb6.0中如何将如原始数据为string型的(二进制)"110110101",想转换成代表的0-255十进制数据输出
来源:百度文库 编辑:高考问答 时间:2024/04/29 18:39:24
通过vb中的MSComm控件的Input只能用string型数组接收,想转换成0-255对应的数据
Function dec(n As String) As Long
For i = 1 To Len(n)
dec = dec * 2 + Val(Mid(n, i, 1))
Next
End Function