[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FN_SETBIT()
Set a bit in a number
------------------------------------------------------------------------------
Syntax
fn_setbit( <nNum>, <nBit> ) -> nResult
Arguments
<nNum> is the number that needs a bit set; and
<nBit> is the bit to set (0-15).
Returns
<nResult>, a numeric
Description
Sets a bit in a number.
Examples
? fn_setbit( 12, 0 ) // 13 (sets bit 0)
Source: N:\SRC\MISC\FNBIT.PRG
Author: Ted Means
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson