converting hex to string

ajagarin

New Member
Licensed User
Longtime User
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:

mjcoon

Well-Known Member
Licensed User
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.
 
Top