Thanks Agraham,
Just so I understand correctly in your example
item1 holds the bits
bit.GetBit(item1,0)
gets the value of bit 0 in item1
.....
bit.GetBit(item1, 7)
gets the value of bit 7 in item1
etc.
so basically it it states bit.GetBit(input_stream , bit_index )
Do the bits look look this : item1 = "11111111" or like
item1 = "1,2,4,16,32,64,128"
If its the first so this makes sense, then they look a bit like a
dipswitch ...
If it is the second, I'm a bit unsure...
what doesn't make sense is the setting of the attributes..
why is it "Bit.SetBit(item1, 0)" ?
When doing a MsgBox(item1) I also saw some different numbers
32 & 33 etc..
Is this the sum of the set bits in item1? (just like a binary clock,adding them together?)
Bit.SetBit(item1, 7)
would be readonly, hidden & system set to true
Thanks for your help Agraham