dpGetAllComments()
The function may not used any longer; replaced by dpGetAllDescriptions(). Returns in dpe all data point elements and in comments all comments with a suitable (optional) filter for comments. Further more optional: data point elements with fitting filter for data point elements
Synopsis
int dpGetAllComments( dyn_string &dpe, dyn_string &comments [, string
commentFilter [, string dpeFilter [, int mode]]]);
Parameters
Parameter | Description |
---|---|
dpe | Data point elements, with suitable filter for comments and (optional) suitable filter for data point elements. |
comments | Comments, according to the filter |
commentFilter | Pattern string for filtering the comments (z.B. "Motor*", "*") |
dpeFilter | Pattern string for filtering data point 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 data point elements and in comments all comments with a suitable (optional) filter for comments. Further more optional: data point elements with fitting filter for data point 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 data points and list of comments
}
Assignment
Data point function
Availability
UI, CTRL