Enum Syntax Question
soshimo
Posts: 215
I found the following syntax for an Enum:
I understand the enum declaration but what is confusing me is the #8 in the middle next to the Bits mnemonic. Is this specifying that the Bits mnemonic has the value of 8 rather than the next sequential value? I hope that's the case because I would like to use non-sequential values in some of my enums (bit masks come to mind first thing).
If that isn't what it means, could someone point out what it does mean?
TIA.
#0,Dpin,Cpin,SLpin,#8,Bits 'Set Dpin,Cpin,SLpin and Bit constant
I understand the enum declaration but what is confusing me is the #8 in the middle next to the Bits mnemonic. Is this specifying that the Bits mnemonic has the value of 8 rather than the next sequential value? I hope that's the case because I would like to use non-sequential values in some of my enums (bit masks come to mind first thing).
If that isn't what it means, could someone point out what it does mean?
TIA.
Comments
-Phil