Description

User measurement must supply a measurement Value.

Return Type

A Variant value.  

The computed value as a Variant.

Syntax

object.ComputeValue (MeasurementObject, ParentOperator)

The ComputeValue Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McUserMeasure.
MeasurementObjectRequired. A McMeasure object.

The McMeasure object for which the measurement is to be computed.

ParentOperatorRequired. An Object object.

The Parent operator (usually an McFeatures or McRefFeatures object) of the MeasurementObject on which the measurement is to be computed.

Remarks

A Value must be returned and its type and shape must agree with the McMeasure.Attributes (either the defaults or the ones returned by calls to UserAttributes). An Empty Variant may be returned if Attributes(mcmaidNofDimensions) is 1 or more and the first (slowest dimension) is variable [i.e., Attributes(mcmaidShape)(0)=0]. In this case the McMeasure.Value property is automatically convenverted into a zero-length array of the proper type. This is especially convenient from VB or VBA implementations of McUserMeasure because the language makes it hard to declare a zero-length array.