[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TBits.Get

Retrieve the value of a particular bit

## Declaration

`public function TBits.Get(`
`Bit: LongInt`
`):Boolean;`

## Description

Get returns True if the bit at position bit is set, or False if it is not set.

## Errors

If bit is not a valid bit index then an EBitsError exception is raised.

## See also

TBits.Bits |  | Access to all bits in the array.
TBits.FindFirstBit |  | Find first bit with a particular value
TBits.seton |  | Turn a particular bit on.