COM - dpGetUnit()
Returns the unit of a datapoint element.
Synopsis
HRESULT dpGetUnit([in] VARIANT vDpName, [out, retval] VARIANT *vUnit);
Parameter
| Parameter | Description |
|---|---|
| vDpName | Datapoint element or datapoint. |
| vUnit | The unit of a datapoint element or a datapoint. |
Description
Returns the unit of a datapoint 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