# BitMaskRead

Returns the integer created from length bits of number beginning from start.

See also BitMaskClear and BitMaskSet.

### Syntax

    BitMaskRead(number, start, length)

##### number

Long integer to be masked.

##### start

Integer specifying the starting bit for reading.

##### length

Integer specifying the length of mask.

### Usage

Parameters start and length must be in the range from 0 to 31.

Bit functions operate on 32-bit integers.

### Examples

    <!--- This example shows BitMaskRead --->
    <HTML>
    <HEAD>
    <TITLE>BitMaskRead Example</TITLE>
    </HEAD>

    <BODY>
    <H3>BitMaskRead Example</H3>

    <P>Returns integer created from length bits of
    number beginning with start.

    <P>BitMaskRead(255, 4, 4): <CFOUTPUT>#BitMaskRead(255, 4, 4)#</CFOUTPUT>
    <P>BitMaskRead(255, 0, 4): <CFOUTPUT>#BitMaskRead(255, 0, 4)#</CFOUTPUT>
    <P>BitMaskRead(128, 0, 7): <CFOUTPUT>#BitMaskRead(128, 0, 7)#</CFOUTPUT>

    </BODY>
    </HTML>