dpGetDpTypeRefs()
The function returns all references in a DPT.
Synopsis
dyn_dyn_string dpGetDpTypeRefs(string dpt);
Parameters
| Parameter | Meaning | 
|---|---|
| dpt | Name of the data point type to be checked for references (for example, "Example_DP") | 
Return Value
References and elements if everything is OK, otherwise an empty dyn_dyn_string.
Errors
Errors (missing arguments) can be queried with getLastError() .
Description
The function returns all references in a DPT (i.e. where DPE is of the type DPEL_TYPREF). The dyn_dyn_string contains all reference DP types and DP elements.
                 Example
                Example
            
Checks the data point type ExampleDP_Float for references. Another node, "AdditionalArchive", is created as a type reference of _ValueArchiv beforehand.
main()
{
  string dpt;
  dyn_dyn_string dds;
  dpt="ExampleDP_Float";
  dds=dpGetDpTypeRefs(dpt);
  DebugN("References found in DP-Typ ExampleDP_Float:");
  DebugN(dds); /* The DPT "_ValueArchiv" and the related element
  "Additionalarchive" are displayed*/
}Assignment
Data point functions
Availability
UI, CTRL
