A ajagarin New Member Licensed User Longtime User Apr 12, 2012 #1 I try to conver hex value to string by using Byteconverter.lib and I had no more idea. Need some help. here is my code: Sub hex_convertion Dim BConv As ByteConverter Dim Bytes() As Byte Dim Str As String RPM.Text = txtLog.Text.SubString2(6,11) RPM.Text = RPM.Text.Replace(" ","") If RPM.Text.Length > 0 Then Bytes = BConv.HexToBytes(RPM.Text) Str = BConv.StringFromBytes(Bytes,"ASCII") Msgbox(str, "RPM") End If End Sub tnx Last edited: Apr 12, 2012
I try to conver hex value to string by using Byteconverter.lib and I had no more idea. Need some help. here is my code: Sub hex_convertion Dim BConv As ByteConverter Dim Bytes() As Byte Dim Str As String RPM.Text = txtLog.Text.SubString2(6,11) RPM.Text = RPM.Text.Replace(" ","") If RPM.Text.Length > 0 Then Bytes = BConv.HexToBytes(RPM.Text) Str = BConv.StringFromBytes(Bytes,"ASCII") Msgbox(str, "RPM") End If End Sub tnx
M mjcoon Well-Known Member Licensed User Apr 12, 2012 #2 I gave up on Basic4Android long ago, so I am not certain, but suspect this belongs in that separate forum, not this Basic4PPC (Windows Mobile) one. (You would not be able to write "Dim BConv As ByteConverter" in B4PPC.) So better to ask your question in the other forum. Mike.
I gave up on Basic4Android long ago, so I am not certain, but suspect this belongs in that separate forum, not this Basic4PPC (Windows Mobile) one. (You would not be able to write "Dim BConv As ByteConverter" in B4PPC.) So better to ask your question in the other forum. Mike.