dpTypeDelete()
The function deletes an existing data point type.
Synopsis
int dpTypeDelete(string dpt);
Parameters
Parameter | Meaning |
---|---|
dpt | Name of the data point type (for example, "Example_DP") |
Return Value
In the event of an error -1, 0 if everything is OK
Errors
Errors can be queried with getLastError() . An error message is issued in the event of incorrect DPTs or missing arguments!
Description
The function dpTypeDelete() deletes the specified data point type.
Make sure, that all belonging data points have been deleted, otherwise you get an error message.
Example
main()
{
int n; // Deletes the data point type
n= dpTypeDelete("valve");
DebugN(n);
if( n == 0 )DebugN ("Data point type deleted");
}
Assignment
Data point functions, waiting Control function
Availability
CTRL