Now it isn't working with either Val( Integer( or CInt(.
I get a Nullpointer exception on the line Text1.Text = when Run. Buffer[x] is a String Array with hex digits.
- Code: Select all
For x = 0 To LineCount - 1
BCnt = CInt("0x" & Mid(Buffer[x], 1, 2))
Addr = CInt("0x" & Mid(Buffer[x], 3, 4))
RecType = CInt("0x" & Mid(Buffer[x], 7, 2))
pgmcode = Mid(Buffer[x], 9, Len(Buffer[x]) - 10)
Text1.Text = "x:" & String(x) & " B:" & String(BCnt) & " A:" & String(Addr)
....
Next
/Henning