COM - dpGetAlias()

Returns the alias of a data point element.

Synopsis

HRESULT dpGetAlias([in] VARIANT vDpName, [out, retval] VARIANT *vAlias);

Parameter

Parameter Description
vDpName Time
vAlias Data point attributes to be read

Description

The parameter vDpNames supports both a single string as well as an array of strings. The result depends on what is used. If no alias is specified, an error code is returned.

EXAMPLe

(See ComSample.xls, CComSample)

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

Assignment

COM