Click or drag to resize

IMcObjectOpSelfAssign Method

Arithmetic binary operator to assign values to this McObject, leaving the result in this McObject.

Namespace:  MediaCy.IQL.ObjectManager
Assembly:  MediaCy.IQL.ObjectManager (in MediaCy.IQL.ObjectManager.dll) Version: 10.0.6912.0
Syntax
VB
Function OpSelfAssign ( 
	RightOperand As Object
) As McObject

Parameters

RightOperand
Type: SystemObject
Right operand. May be a scalar or array of any numeric type. It may also be an McObject instance of a numeric type.

Return Value

Type: McObject
Remarks
Values from the VARIANT varRightOperand are assigned to replace the values of this McObject, and the result is left in this McObject and returned. OpSelfAssign differs from OpBareAssign in that the shape (i.e., number and size of dimensions) of this assigned to McObject is not changed by the assignment. Selected elements of an McObject may be assigned to by assigning to the SelectedValues property 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.
Examples
VB
'Start with 2-D
Dim mcobjLeft As McObject
Set mcobjLeft = GlobalTools.McObjectTemp( Array( Array(1,2,3), Array(10,20,30)))
varRight = Array( 1,-1, 2)
mcobjLeft.OpSelfAssign varRight
' Show Operation McObject Result = 1,-1,2 1,-1,2
MsgBox( "Operation McObject Result = " + GlobalTools.McToText(mobjLeft)).Value
' Show Result nDims: 2 Dim sizes: -2 -3
MsgBox( "Result nDims: " + Str( mcobjLeft.Shape(mcobjSIC_NofDims)) + _
" Dim sizes: " + GlobalTools.McToText( mcobjLeft.Shape(mcobjSIC_SizeAllDims))).Value
See Also

Reference

IMcObjectOpSelfAssign(Object)
McOpSmallerOf
McOpAndBits
McOpConcatConcat
McOpAND