CrGlobal: BitSet

BitSet

copy an integer value and set a bit on

 Public Function BitSet(
	  ByVal Value As Variant,
	  ByVal Bit As Integer,
	  ByVal One As Boolean ) As Variant

Parameters

Value
[ByVal] Variant. integer value (see module notes)
Bit
[ByVal] Integer. bit number
One
[ByVal] Boolean. whether the bit will be set to one (false means set to zero)

Return Values

Variant -  resulting integer value (see module notes)

Remarks

See Also

Project crgenlib Overview Class CrGlobal Overview CrGlobal Properties CrGlobal Methods BitOn BitShift