You'll need to "shift" them. AFAIK the fist operator is not currently
available (I believe this will show up in VB 2005).
Meanwhile and unless you need to do that a fair amount of time you could do
:
allBits=bit1+bit2*2+bit3*4+bit4*8 etc...
Another option would be to see if the BitArray class could help :
http://msdn.microsoft.com/library/de...mberstopic.asp
(never usde it but rmember to have seen it)
Patrice
--
"Federico Caselli" <Fe*************@discussions.microsoft.com> a écrit dans
le message de news:4A**********************************@microsof t.com...
Thank you for answering, but I'd need to set boolean values of bits
separately, something like:
bit1 = 1
bit2 = 0
bit3 = 1
...
bit8 = 0
and then put them into a unique byte variabile in the right order.
Thank you