Returns number bitwise masked with length bits of mask beginning from start.
See also BitMaskClear and BitMaskRead.
BitMaskSet(number, mask, start, length)
Long integer to be masked.
Long integer specifying the mask.
Integer specifying the starting bit in number for masking.
Integer specifying the length of mask.
Parameters start and length must be in the range from 0 to 31.
Bit functions operate on 32-bit integers.
<!--- This example shows BitMaskSet ---> <HTML> <HEAD> <TITLE>BitMaskSet Example</TITLE> </HEAD> <BODY> <H3>BitMaskSet Example</H3> <P>Returns number bitwise masked with length bits of mask beginning from start. <P>BitMaskSet(255, 255, 4, 4): <CFOUTPUT>#BitMaskSet(255, 255, 4, 4)# </CFOUTPUT> <P>BitMaskSet(255, 0, 4, 4): <CFOUTPUT>#BitMaskSet(255, 0, 4, 4)# </CFOUTPUT> <P>BitMaskSet(0, 15, 4, 4): <CFOUTPUT>#BitMaskSet(0, 15, 4, 4)# </CFOUTPUT> </BODY> </HTML>