The simplest thing I tried was String.GetBytes("UTF8")
But that didnt work, it gave me the ASCII values of each in an array, and thats not what I want. I want 00 Hex = 0 in the byte array, and 3C is 60 in the byte array.
Dim hex As String="003C428181A5A581A5BD9981423C0000"
Dim values As Map
values.Initialize
For x=0 To hex.Length-1 Step 2
values.Put(x/2,Bit.ParseInt ( hex.CharAt(x) & hex.CharAt(x+1) ,16 ))
Next
For x=0 To values.Size-1
Log(values.GetValueAt(x))
Next
Thats what I needed. I remember doing this before, but my memory escapes me...
Hey, another question: Is it possible to read and set specific bits in a byte? I have a subroutine that sets a bit, but I dont know exactly how to read a bit. The bit location number needs to be in a variable. So setting and reading bits in a loop...