dpTypes()
Returns all the data point types from the current project.
Synopsis
dyn_string dpTypes(string pattern = "*", unsigned system = , bool
                    includeEmpty = true);;
Parameters
| Parameter | Meaning | 
|---|---|
| pattern | Pattern for the returned DPTs. Optional parameter. | 
| system | When querying DPTs from other systems, you define the desired system with this parameter. Optional parameter. If this parameter is not defined, the own system is queried. | 
| includeEmpty | When this is set to false, data point types without existing data points will be ignored. | 
Return Value
A dynamic field with all DP types.
Errors
Errors can be retrieved with getLastError() .
Description
This function returns all the data point attributes as a dyn_string.
Example
Output of all existing data point types.
main()
{
  dyn_string ds;
  ds=dpTypes("D*", 2);
  DebugN(ds); /* Returns all DPTs from system 2, which begin with
  "D" */
}Assignment
Data point function
Availability
CTRL
