[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FN_TOGBIT()
Toggle a bit in a number
------------------------------------------------------------------------------
Syntax
fn_togbit( <nNum>, <nBit> ) -> nResult
Arguments
<nNum> is the number that needs a bit toggled.
<nBit> is the bit to toggle.
Returns
<nResult>, a numeric
Description
Toggles bit <nBit> in number <nNum>.
Examples
? fn_togbit( 9, 0 ) // 8 (toggles 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