bitrotater()

Function group Execute on client Platform(s)
Binary Field NO All

Syntax

bitrotater(binary,count)

Description

Rotates a binary field to the right by 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. The vacated bits are replaced by the bits shifted off the right-hand end. If the specified number of bits is greater than the bit-length of the field, Omnis returns 0, and the field is unchanged.

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.

Example

Calculate lStatus as  bitrotater(lBinary,lCount)