Function group | Execute on client | Platform(s) |
---|---|---|
Binary Field | NO | All |
bitrotatel(binary,count)
Rotates a binary field to the left, 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 left-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.
Calculate lStatus as bitrotatel(lBinary,lCount)