Ok taking this code below when I look at my LoByte and HiByte value
the numbers don't make sense.
I pass the first arraylist(index ) into this function which is 3595 integer. I should get a Lobyte as 149 and a hibyte as 53.
However i get a lobyte as 11 and hibyte as 14
What am I doing wrong?
[CODE=vb]Public Function ByteDeg(ByVal _ReadingArrayLi st3 As ArrayList)
Dim intindex As Integer
For Each intarrayindex In _ReadingArrayLi st3
LoByte_Value = _ReadingArrayLi st3(intindex) And &HFF&
HiByte_value = _ReadingArrayLi st3(intindex) \ &H100 And &HFF&
intindex = intindex + 1
'table_upload_r eq()
Next
End Function[/CODE]
the numbers don't make sense.
I pass the first arraylist(index ) into this function which is 3595 integer. I should get a Lobyte as 149 and a hibyte as 53.
However i get a lobyte as 11 and hibyte as 14
What am I doing wrong?
[CODE=vb]Public Function ByteDeg(ByVal _ReadingArrayLi st3 As ArrayList)
Dim intindex As Integer
For Each intarrayindex In _ReadingArrayLi st3
LoByte_Value = _ReadingArrayLi st3(intindex) And &HFF&
HiByte_value = _ReadingArrayLi st3(intindex) \ &H100 And &HFF&
intindex = intindex + 1
'table_upload_r eq()
Next
End Function[/CODE]
Comment