Bitwise use

  • Hi,

    I have a field (number) and I would like to know if the mask (0x200000) is applied and if it's not, add it.

    I think I have to use the Bitwise operator (&) but as my value appear in my database in decimal, I don't know how to do it.

    Thank you

  • I found a way to do it.

    Please ignore or delete this post

  • What was the solution you came up with?  Thanks.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply