F Fox Active Member Licensed User Longtime User Jul 9, 2012 #1 Hello guys. Anybody knows how can i convert hex to ascii and back. Maybe a guy have solved this. I want to written an app for myself like this: Hex to ascii and back! anybody knows how can i convert them or have an example? best regards
Hello guys. Anybody knows how can i convert hex to ascii and back. Maybe a guy have solved this. I want to written an app for myself like this: Hex to ascii and back! anybody knows how can i convert them or have an example? best regards
Erel B4X founder Staff member Licensed User Longtime User Jul 9, 2012 #2 Here is one direction: B4X: Sub Activity_Create(FirstTime As Boolean) Log(AsciiToHex("abcd")) End Sub Sub AsciiToHex (a As String) As String Dim bc As ByteConverter Return bc.HexFromBytes(a.GetBytes("ASCII")) End Sub Upvote 0
Here is one direction: B4X: Sub Activity_Create(FirstTime As Boolean) Log(AsciiToHex("abcd")) End Sub Sub AsciiToHex (a As String) As String Dim bc As ByteConverter Return bc.HexFromBytes(a.GetBytes("ASCII")) End Sub