Open topic with navigation
Sets a bit in a bit field
Declare Function pp_bitset(ByRef bit_field As Long, ByVal bit_number As Long) As Long
LONG pp_bitset(LPLONG bit_field, LONG bit_number)
<bit_field> is a pointer to the bit field variable on which to work.
<bit_number> is the bit number in the bit field to set, 1 to 32.
The new value of the bit field with the selected bit set.
There are several long integers in the License File that may be used as bit-fields. A bit field contains 32 bits that can be used to store the state of multiple binary attributes. The state of those attributes are either enabled or disabled. This is typically used to license various modules or features on a pay-per-module basis.
This function along with pp_bitclear() and pp_bittest() work together to provide you with total bit field manipulation capability.
Refer to pp_bitclear for an example of setting and clearing bit fields.
PP_BITTEST() and PP_BITCLEAR()