Xbase++ : BAnd() / BOr() / BXOr()

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Xbase++ : BAnd() / BOr() / BXOr()

Post by AUGE_OHR »

more Xbase++ to harbour Question
BAnd( <nVa1>, <nVal2>, [<nVal3>,...] ) -> nBitwiseAnd
BOr( <nVa1>, <nVal2>, [<nVal3>,...] ) -> nBitwiseOr
BXOr( <nVa1>, <nVal2>, [<nVal3>,...] ) -> nBitwiseXOr
what to use with harbour :?:
have fun
Jimmy
edk
Posts: 999
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Xbase++ : BAnd() / BOr() / BXOr()

Post by edk »

hb_BitAnd(<nVal1>, <nVal2> [, <nVal3>, ... ]) ➜ nResult
performs a bitwise AND operation, same as & operator in C language.

hb_BitNot(<nVal>) ➜ nResult
returns the bitwise complement of <nVal> (all bits are flipped), same as ~ operator in C language.

hb_BitOr(<nVal1>, <nVal2> [, <nVal3>, ... ]) ➜ nResult
performs a bitwise OR operation, same as | operator in C language.

hb_BitXor(<nVal1>, <nVal2> [, <nVal3>, ... ]) ➜ nResult
performs a bitwise XOR operation, equivalent of ^ operator in C language.
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Xbase++ : BAnd() / BOr() / BXOr()

Post by AUGE_OHR »

hi,

that is easy, THX

Code: Select all

   #xtranslate BAND                            =>  hb_BitAnd
   #xtranslate BOr                             =>  hb_BitOr
   #xtranslate BXOr                            =>  hb_BitOr
   #xtranslate BNot                            =>  hb_BitNot
have fun
Jimmy
Post Reply