what to use with harbourBAnd( <nVa1>, <nVal2>, [<nVal3>,...] ) -> nBitwiseAnd
BOr( <nVa1>, <nVal2>, [<nVal3>,...] ) -> nBitwiseOr
BXOr( <nVa1>, <nVal2>, [<nVal3>,...] ) -> nBitwiseXOr
Xbase++ : BAnd() / BOr() / BXOr()
Moderator: Rathinagiri
- 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()
more Xbase++ to harbour Question

have fun
Jimmy
Jimmy
Re: Xbase++ : BAnd() / BOr() / BXOr()
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.
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.
- 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()
hi,
that is easy, THX
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
Jimmy