Home > lang > btst 
 en fr de es it pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Voorgaande  Volgende  Bewerken  Hernoemen  Undo  Search  Administratie  
Handleiding  
Waarschuwing Deze pagina is niet vertaald.  Zie Engelse versie 
BTst
Result = BTst ( Number , Bit )

Returns TRUE if the Bitth bit of the Number is set. The bit number of the least significant bit is 0.

The type of Number may be Byte, Short, Integer, or Long.

The valid range of Bit depends on the type of the Number argument.

Type of Number Range of Bit
Byte 0...7
Short 0...15
Integer 0...31
Long 0...63

Fouten

BerichtBeschrijving
Type mismatch (6) The datatype of the Number argument is not valid.
Bad argument (20) The Bit argument is out of range.

Voorbeeld

PRINT 15, Bin(15, 16)
PRINT BTst(15, 1)

15      0000000000001111
True

PRINT 13, Bin(13, 16)
PRINT BTst(13, 1)

13      0000000000001101
False

Zie ook

Bits Manipulation Functions, Logical Operators