> lang > shl | ![]() |
| Documentation |
|
Value = Shl ( Number , Bit )
Returns Number shifted to the left by Bit bits. The sign of Number is kept.
The type of Number may be Byte, Short, Integer, or Long.
The valid range of Bit depends on the type of the Number argument.
| Type of Number | Range of Bit |
|---|---|
| Byte | 0...7 |
| Short | 0...15 |
| Integer | 0...31 |
| Long | 0...63 |
![]() | The datatype of the return value is the datatype of Number. |
| Message | Description |
|---|---|
| Type mismatch (#6) | The datatype of the Number argument is not valid. |
| Bad argument (#20) | The Bit argument is out of range. |
It may be useful to expand the type of an argument. Use for this CLong, CInt or CShort.