dpTypeDelete()
The function deletes an existing datapoint type.
Synopsis
int dpTypeDelete(string dpt);
Parameters
| Parameter | Meaning |
|---|---|
| dpt | Name of the datapoint 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 datapoint type.
Make sure, that all belonging datapoints have been deleted, otherwise you get an error message.
Example
main()
{
int n; // Deletes the datapoint type
n= dpTypeDelete("valve");
DebugN(n);
if( n == 0 )DebugN ("Datapoint type deleted");
}
Assignment
Datapoint functions, waiting Control function
Availability
CTRL
