| Function group | Execute on client | Platform(s) |
| Binary field | NO | All |
bitfirst(binary)
Returns the number of the most significant bit with value 1 in a binary field.
The following example sets lNumber to the bit number of the first bit set to 1. If all bits are zero, bitfirst() returns -1.
CalculatelNumberasbitfirst(lBinary)