pp_bitset()

Sets a bit in a bit field

Applies to:

Win32, Win64

Syntax-VB:

Declare Function pp_bitset(ByRef bit_field As Long, ByVal bit_number As Long) As Long

Syntax-C:

LONG pp_bitset(LPLONG bit_field, LONG bit_number)

Arguments:

<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.

Returns:

The new value of the bit field with the selected bit set.

Description:

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.

Example:

Refer to pp_bitclear for an example of setting and clearing bit fields.

See Also:

PP_BITTEST() and PP_BITCLEAR()

Concept Link IconRelated Topics