CrGlobal: BitShift

BitShift

perform bit-wise shift operation

 Public Function BitShift(
	  ByVal Value As Variant,
	  ByVal ShiftBits As Integer,
	  ByVal Left As Boolean ) As Variant

Parameters

Value
[ByVal] Variant. integer value (see module notes)
ShiftBits
[ByVal] Integer. number of bits to shift
Left
[ByVal] Boolean. whether to shift to the left (false means shift to the right)

Return Values

Variant -  resulting integer value (see module notes)

Remarks

See Also

Project crgenlib Overview Class CrGlobal Overview CrGlobal Properties CrGlobal Methods BitSet BitShiftLeft