[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   nOr( nMask1, ... nMaskn ) -> <nResult> 
------------------------------------------------------------------------------


 PARAMETER:

  <nMask1 .. n>    one to many Bitmasks that will be ORed together


 DESCRIPTION:

  This function lets you perform a logical OR with an integer bitmask and
  one ore more integer value. The purpose is to set one or more bits in 
  <nResult> in response to nMask1 - nMaskn
  are set ( TRUE ).

                        1 OR 1 = 1
                        1 OR 0 = 1
                        0 OR 1 = 1
                        0 OR 0 = 0
  

  This is used for instance for the definition of window styles, where 
  you have a large number of possible styles which will be nOred to a
  'magic number' :

    +-------------------------------------------------------------+
    |  /* Combine Window style flags */                           |
    |  nOr( WS_BORDER, WS_DISABLED, WS_MAXIMIZE )                 |
    +-------------------------------------------------------------+


 SOURCE:

  SOURCE\FUNCTION\OR.C



See Also: nXOR lAnd nAnd
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson