Click or drag to resize

IMcOMGlobalMcSum Method

Returns the sum of the elements in one or two argument arrays

Namespace:  MediaCy.IQL.ObjectManager
Assembly:  MediaCy.IQL.ObjectManager (in MediaCy.IQL.ObjectManager.dll) Version: 10.0.6912.0
Syntax
VB
Function McSum ( 
	varNumbers1 As Object,
	<OptionalAttribute> varNumbers2 As Object
) As McObject

Parameters

varNumbers1
Type: SystemObject
May be a scalar or array of any numeric type. It may also be an McObject instance of a numeric type.
varNumbers2 (Optional)
Type: SystemObject
Optional argument. May be a scalar or array of any numeric type. It may also be an McObject instance of a numeric type. If the type differs from that of varNumbers1, then it is cast to that type.

Return Value

Type: McObject
A scalar Long or Double value giving the sum of elements found in the argument(s). The result will be Long if the type of varNumbers1 is integral and it will be Double if the type of varNumbers1 is floating point.
Remarks
The varNumbers1 and optional varNumbers2 arguments (which may be a scalar or an array of arthmetic values) are scanned to find the sum of the elements found in either of them. If the type of varNumbers2 differs from varNumbers1, then it is cast to the type of varNumbers1 before being scanned for the sum.
See Also