Function group | Execute on client | Platform(s) |
---|---|---|
Binary Field | NO | All |
bitshiftr(binary,count)
Shifts a binary field to the right by a number of bits specified in count. Operates directly on binary. Returns a Boolean (true for success).
The function operates directly on the argument, and returns 1 for success and 0 for failure. Vacated bits become zero. Bits shifted past the right-most bit are lost.
The first parameter can be a Binary or an Integer; in the case of Binary, you need to provide a variable, and not the result of a calculation.
Calculate lStatus as bitshiftr(lBinary,lCount)