getAllDpAliases()

Returns all the data points and their aliases. The function has been renamed to dpGetAllAlias() as from version 2.11.1.

Synopsis

int getAllDpAliases(dyn_string &dps,dyn_string &aliases );

Parameters

Parameter Description
dps data point name
aliases Alias

Return value

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

Error

Errors can be retrieved with getLastError(). The return value will then be the appropriate error code.

Description

Fills the transferred dyn_strings with data point names and the associated aliases in the language lang.

Example

main()
{
  dyn_string dps,ali;
  int i;
  i = getAllDpAliases(dps,ali);
  DebugN(i);
  DebugN(dps,ali); // output 
}

Assignment

Data point function

Availability

CTRL