Support for bit manipulation system functions

PocketBuilder 2.5 includes bit manipulation functions for numbers with the unsigned long datatype. The following table lists and provides brief descriptions of these functions.

Bit manipulation function

Allows you to

BitwiseAND

Compare the binary values of two unsigned long variables

BitwiseClearBit

Clear the bit from a specified position in a binary number

BitwiseGetBit

Check whether a bit is turned on at a specified position of a binary number.

BitwiseNOT

Get the bitwise complement of a binary number

BitwiseOR

Compare the bits from two binary numbers in an inclusive OR operation

BitwiseSetBit

Set the bit at a specified position of a binary number

BitwiseShiftLeft

Modify a binary number by shifting all its bits to the left by a specified amount

BitwiseShiftRight

Modify a binary number by shifting all its bits to the right by a specified amount

BitwiseXOR

Compare the bits from two binary numbers in an exclusive OR operation

For more information, including function syntax, see the PowerScript Reference in the online Help.