Page 1 of 1

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

Posted: Wed Oct 23, 2019 11:00 pm
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 :?:

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

Posted: Thu Oct 24, 2019 5:37 am
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.

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

Posted: Thu Oct 24, 2019 9:08 pm
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