Description

One of the McMeasure instances in the collection

Property type

A McMeasure object.  

Syntax

object.Item(MeasureID)

The Item Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McMeasures.
MeasureIDRequired. A Variant value.

Either the name or the ID of the measurement desired. You can not access measurements by their collection index; however measuremements already in the collection may also be enumerated in a For Each loop.

Remarks

Avaliable measurements may be accessed by their name, McMeasure.Attributes(mcmaidName). Or they may be accessed by their ID, McMeasure.Attributes(mcmaidID). Measurements may either be built in ones, or may be ones registered by a call to McEngine.RegisterUserMeasurement.

The accessed measurement will be automatically added to the collection, if it is not already part of it. If a specified name does not resolve to a measurement, then Nothing is returned; if a specified ID does not resolve to a measurement, then an error is returned.

Exceptions

An error is generated if a specified ID does not resolve to a valid measurement.