DQBreadBit
FUNCTION

Prototype

DECLARE FUNCTION DQBreadBit (BYVAL Value, BYVAL Bit)

Parameters

Value - INTEGER value to read bit status from

Bit - Bit number, ranging 0-15, to retrieve status of

Returns

True if specified bit is set, otherwise false

Description

This function returns true if a specified bit of a specified integer value is set. It can be useful to store boolean variables into an unique INTEGER one, as QB does not support booleans. An integer can contain up to 16 boolean variables!

Notes:

See DQBsetBit, DQBresetBit and DQBtoggleBit