Description
Arithmetic binary operator to left-shift the values in this McObject, leaving the result in this McObject.
-
Return Type
-
A McObject object.
-
Syntax
-
object.OpSelfLeftShift (RightOperand)
The OpSelfLeftShift Method syntax has these parts: |
| object | An expression evaluating to an object of type McObject. | | RightOperand | Required. A Variant value. Right operand. May be a scalar or array of any numeric type. It may also be an McObject instance of a numeric type.
| Remarks
Values from the VARIANT varRightOperand are used as a shift count to left-shift the values of this McObject, and the result is left in this McObject and returned. This operator is only legal for integral Type properties.
If the shape of varRightOperand differs from this McObject, then elements from the varRightOperand are associated with elements from from this McObject in order, irrespective of number of dimensions or sizes of dimensions. If the vector length of varRightOperand is less than that of this McObject, the right operand is re-used as often as necessary.
Exceptions
Operands must scalars or arrays of some numeric type. Operands may be arrays of VARIANT, but if they are, all elements must be of the same arithmetic type. E.g., Array( 1, 2) is OK, but Array( 1.5, 2) is not legal.
|