<- BitShift - Operator (Left Shift)

Concerns

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

Example

 

   Dim l As Long

  

   l := 1

   l := l <- 1

   MsgBox(l)

Result:

V1 contains a value of 2

Reason:

The value 1 of a 32-bit variable is binary represented by 00000000000000000000000000000000000000001.

The operator moves the bits to the left by the specified number (1). To the right is filled with zeros.

The result is:

00000000000000000000000000000010

This binary value is equal to the number 2.