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 vDpNames parameter supports both a single string and 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