Rotate the bits in a variable right 1 bit, the least significant bit will be "rolled" over to the most significant bit.
Syntax: Rolr variable
|
var |
Required. Variable or value to shift |
Notes Arrays, Strings, and Boolean variables are not allowed
Example:
Dim a As uByte, b as uInteger a=0x02 b=0x0021 Roll a ' a is now 0x01 Roll b ' b is now 0x8010