Hello
some difficulty again.
I want to read a particular bit value from a byte. can anyone suggest me how to achieve this.
Following is the code which gets byte value.
===============================
Structure typByteArray
Public B() As Byte
EndStructure
Dim tB As typByteArray
ReDim tB.B(2)
'say for example it gets the following values.
tB.B(2) = 51
tB.B(1) = 121
================================
From this byte I want to get a particular bit value.
How can I get this. Is it possible.
Reply needed as soon as possible.
Thanks
sups123
some difficulty again.
I want to read a particular bit value from a byte. can anyone suggest me how to achieve this.
Following is the code which gets byte value.
===============================
Structure typByteArray
Public B() As Byte
EndStructure
Dim tB As typByteArray
ReDim tB.B(2)
'say for example it gets the following values.
tB.B(2) = 51
tB.B(1) = 121
================================
From this byte I want to get a particular bit value.
How can I get this. Is it possible.
Reply needed as soon as possible.
Thanks
sups123