COM - dpGetDescriptionLang()
Returns the description of a data point 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 | Data point element or data point |
iMode | Mode for the operating mode |
vDescription | The description of the data point element or data point |
Description
This function returns the description of the specified data point 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