dpGetAllComments()

The function may not used any longer; replaced by dpGetAllDescriptions(). Returns in dpe all datapoint elements and in comments all comments with a suitable (optional) filter for comments. Further more optional: datapoint elements with fitting filter for datapoint elements

Synopsis

int dpGetAllComments( dyn_string &dpe, dyn_string &comments [, string commentFilter [, string dpeFilter [, int mode]]]);

Parameters

Parameter Description
dpe Datapoint elements, with suitable filter for comments and (optional) suitable filter for datapoint elements.
comments Comments, according to the filter
commentFilter Pattern string for filtering the comments (z.B. "Motor*", "*")
dpeFilter Pattern string for filtering datapoint elements.
mode For the description of the mode parameter, see the function dpGetDescription().

Return Value

In the event of an error -1, otherwise 0.

Errors

The function getLastError() return the error code. Errors are missing arguments.

Description

Returns in dpe all datapoint elements and in comments all comments with a suitable (optional) filter for comments. Further more optional: datapoint elements with fitting filter for datapoint elements.

Example


main()
{
  int number;
  dyn_string dps, comment;
  number = dpGetAllComments(dps, comment, "*"); 
  //filtering the comments 
  DebugN(number, dps, comment); 
  //debugging the number, list of datapoints and list of comments 
}

Assignment

Datapoint function

Availability

UI, CTRL