newbie question vb.net bits
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
If I have a 2 byte byte array, how do I test bits within the bytes to
determine if they are on ?
for example, I need to check if bit 0 and 6 are on in byte 1 and bit
0, 2 and 5 in byte 2.
I think I "and" it with 0x01 and 0x0x40, but am not familiar with the
syntax or how to get to this level. Thanks. Also, do you check for
each one, or is there one value you use ? I problably need to do it
both ways in another section.
thanks.
mark
.
Relevant Pages
- Newbie struggling with function pointers
... And I have an array of what I _hope_ are pointers to functions (if they ... trying to decipher all the tutorials on function pointers I've come ... The syntax, not so clear... ... Prev by Date: ... (comp.lang.c) - array question (newbie)
... Having an array: ... And refering to a particular element, which syntax is correct? ... Prev by Date: ... (comp.lang.perl.misc) - Re: Converting from ArrayList to non System.Type array
... Jack Addington wrote: ... > I have a method that takes an array of nodes as a parameter. ... > and pass to the method but I cannot seem to get the syntax right. ... Prev by Date: ... (microsoft.public.dotnet.languages.csharp) - Datalist control is bound by an element of the array ???
... Data displayed on the datalist control is bound by the column name of the ... Could I use an element of the array which has the name ... Is there anything wrong with the syntax? ... Prev by Date: ... (microsoft.public.dotnet.framework.aspnet) - Re: Referencing a cell from another worksheet
... Anne Troy ... > I'm sure this is very simple, but can someone please tell me the syntax to ... Prev by Date: ... (microsoft.public.excel) |
|