11-12-2023, 06:54 AM
If you need bits (presumably as flags) you could always use a _BYTE and manipulate each of the 8 bits. This will give you 8 flags to choose from.
Code: (Select All)
TYPE BitStruct
xbits AS _BYTE
END TYPE
DIM BitsStructure AS BitStruct
BitsStructure.xbits = BitsStructure.xbits XOR 8 ' toggle 4th bit
PRINT BitsStructure.xbits
BitsStructure.xbits = BitsStructure.xbits XOR 8 ' toggle 4th bit
PRINT BitsStructure.xbits