dpTypeName()
Returns the data point type for the data point name.
Synopsis
string dpTypeName(string dp);
Parameters
Parameter | Meaning |
---|---|
dp | Name of the data point (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 data point type for the given data point name, in the event of error an empty string is returned.
Example
main()
{
string s;
s=dpTypeName("Valve17.opening");
}
Assignment
CTRL