Click or drag to resize

IMcObjectOpSelfFillIn Method

Binary operator to fill-in concatenate 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 OpSelfFillIn ( 
	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
The "fill-in concatenate" operators, McOpFillIn and OpSelfFillIn, are used to create a run of integral values from a starting value up to (or down to) an ending value. When used with scalar operands (one value to the left and one value to the right), the result is a vector that starts with the left-hand value and goes in steps of one up to (or down to), but does not include, the right hand value. For OpSelfFillIn, the elements of the VARIANT varRightOperand are concatenated to this McObject after replacing the last value of varLeftOperand and the first value of this McObject with the the run of values between the the last element of this McObject up-to but not including the first element of varRightOperand (this run may be a zero length array, see Notes). The resulting array is returned. This operator is basically for creating runs of numbers as arrays. This operator is only legal for integral Type properties. One might intuitively the run of numbers to include the value of the right operand. Why did we do it differently? The basic reason is that an empty (zero length) array is potentially quite useful, since it can be used to indicate that nothing is selected in some context.
Examples
VB
Dim mcobjLeft As McObject
Set mcobjLeft =  GlobalTools.McObjectTemp( Array(1, 3))
varRight = Array(8, 20)
mcobjLeft.OpSelfFillIn  varRight
' Show Operation McObject Result = 1,3,4,5,6,7,20
MsgBox( "Operation McObject Result = " + GlobalTools.McToText(mcobjLeft)).Value
' Show Result nDims: 1 Dim sizes: -7
MsgBox( "Result nDims: " + Str( mcobjLeft.Shape(mcobjSIC_NofDims)) + _
" Dim sizes: " + GlobalTools.McToText( mcobjLeft.Shape(mcobjSIC_SizeAllDims))).Value
See Also

Reference

IMcObjectOpSelfFillIn(Object)
McOpSmallerOf
McOpAndBits
McOpConcatConcat
McOpAND