CrGlobal: BitValue

BitValue

determine integer value of the specified bit for the specified data type

 Public Function BitValue(
	  ByVal Bit As Integer,
	  Optional ByVal ValueType As VbVarType = vbLong ) As Variant

Parameters

Bit
[ByVal] Integer. bit number
ValueType
[ByVal] Optional. VbVarType. data type  

Default: vbLong

Return Values

Variant -  bit value

Remarks

Zero will be returned if bad arguments are passed.

See Also

Project crgenlib Overview Class CrGlobal Overview CrGlobal Properties CrGlobal Methods BitShiftRight BitValueBit