BTst Method
Description
Returns the status of 1 bit in a number.
Syntax
Function BTst (Number As Integer, BitNumber As Integer) As Boolean
Parameters
- Number
An expression or number that specifies the number to use for the bit test. - BitNumber
A number between 0 and 31 that specifies the bit number to test.
Return Value
True if the specified bit is set, False if not.
See Also
On Method, Off Method
BTst Example
VB Example:
x = m_spel.BTst(data, 2)
C# Example:
x = m_spel.BTst(data, 2);