Page 1 of 1

Compiler error?

PostPosted: Sun Jun 17, 2012 12:15 am
by Henning
As I remember this worked with prev. version.
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

Re: Compiler error?

PostPosted: Mon Jun 18, 2012 12:04 am
by Henning
........

Alzheimer light... This is why I did strHex2Int Function...

Still would be nice to have.

/Henning