COM - dpGetUnit()

Returns the unit of a data point element.

Synopsis

HRESULT dpGetUnit([in] VARIANT vDpName, [out, retval] VARIANT *vUnit);

Parameter

Parameter Description
vDpName Data point element or data point.
vUnit The unit of a data point element or a data point.

Description

Returns the unit of a data point element. The parameter vDpNames supports both a single string as well as an array of strings. The result depends on what is used.

EXAMPLe

(See ComSample.xls, CComSample)

Public Sub dpGetUnit()Debug.Print
moComManager.dpGetUnit("_mp_ANALOG2.analog.value")
End Sub

Assignment

COM