hello :( writing for help again
i have a function here:
i want to increment boutbuffer(6) every time in loop by 8 actually this is a address(6)and(7) writing to pic it is 800 byte and when comes 1 mb modify (5) however i am getting error . when count reach to A0 which is 160 dec it gives error conversion from str to byte i also tried
bOutBuffer(6) = Convert.ToByte(Trim(Hex(b)))
exep is input string is not in correct format.
i have a function here:
Code:
Private Function Uframe(ByVal a As List(Of Byte())) As List(Of Byte())
Dim b As Int16 = 0
For u As Integer = 0 To a.Count - 1
Dim bOutBuffer(8) As Byte
bOutBuffer(0) = "&H7E"
bOutBuffer(1) = "&H7E"
bOutBuffer(2) = "&H7E"
bOutBuffer(3) = "&H09"
bOutBuffer(4) = "&H00"
bOutBuffer(5) = "&H00"
bOutBuffer(6) = &H0
bOutBuffer(7) = "&H00"
bOutBuffer(8) = "&H08"
a(u) = bOutBuffer.Concat(a(u)).ToArray
b = b + 8
bOutBuffer(6) = Hex(b)
Next
Return a
End Function
bOutBuffer(6) = Convert.ToByte(Trim(Hex(b)))
exep is input string is not in correct format.