dpTypeName()
Returns the datapoint type for the datapoint name.
Synopsis
string dpTypeName(string dp);
Parameters
| Parameter | Meaning |
|---|---|
| dp | Name of the datapoint (for example, "valve.opening") |
Return Value
Empty string or DP type as a string.
Errors
Errors can be retrieved with getLastError(). An error message is issued in the event of incorrect DPs or missing arguments!
Description
The function dpTypeName() returns the datapoint type for the given datapoint name, in the event of error an empty string is returned.
Example
main()
{
string s;
s=dpTypeName("Valve17.opening");
}
Assignment
CTRL
