I know its a noob question, but how can I get the Chr() of a number in Hexadecimal
I have the number as a string, in the first place.
I have the string "313735" and I need to get the:
Dim Str As String = "313735"
Dim AscVal(3) As Int
For i = 0 To 2
AscVal(i) = Bit.ParseInt(Str.SubString2(i * 2, i * 2 + 2),16)
Next
For i = 0 To AscVal.Length - 1
Log(Chr(AscVal(i)))
Next
t
B4x will automatically convert (Valid) numeric strings to a number.
Dim hex As String = "313735"
For i=0 To hex.Length -1 Step 2
'Log( Chr( hex.SubString2( i, i+2)))
Log( Chr( Bit.ParseInt( hex.SubString2( i, i+2), 16)))
Next
edit: sorry is a decimal sulution
edit2: now with hex