dpTypeRefName()
The function "dpTypeRefName" returns the type reference of the selected DPE.
Synopsis
string dpTypeRefName(string dpe);
Parameters
Parameter | Meaning |
---|---|
dpe | Name of the data point element (for example, "Pump1_01.state.mode") |
Return Value
Empty string or the type reference as string.
Errors
Description
The function "dpTypeRefName()" returns the type reference of the selected DPE, if any exists, otherwise an empty string is returned.
Example
Checks, whether the element in the text field is a type reference or not.
main()
{
string dp, typereference;
dp = TextField1.text;
typereference = dpTypeRefName(dp);
if(typereference != "")
TextField2.text = typereference;
else
{
TextField2.text = "no type reference exists";
DebugN(typereference);
}
}
Assignment
UI