COM - dpGetDescriptionLang()

Returns the description of a datapoint element in all available project languages.

Synopsis

HRESULT dpGetDescriptionLang([in] BSTR vDpName, [in, defaultvalue(-3)] int iMode, [out, retval]VARIANT *vDescription);

Parameter

Parameter Description
vDpName Datapoint element or datapoint
iMode Mode for the operating mode
vDescription The description of the datapoint element or datapoint

Description

This function returns the description of the specified datapoint element in all available project languages.

If the value -3 (default) is used for the iMode parameter, the ComManager uses the default value from the config file. Otherwise, the mode is used as described in the CTRL function dpGetDescription().

Example

(See ComSample.xls, CComSample)

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

Assignment

COM