-> BitShift - Operator (Right Shift)

Concerns

This operator moves the bit-encoded contents of a variable by x digits to the right.

Example

 

   Dim l As Long

  

   l := 2

   l := l -> 1

   MsgBox(l)

Result:

V1 contains a value of 1

Reason:

The value 2 of a 32-bit variable is binary represented by 000000000000000000000000000000000000010.

The operator moves the bits to the right by the specified number (1). On the far left, zeros are filled.

The result is:

00000000000000000000000000000001

This binary value is equal to the number 1.