dpAliasToName()
Returns the datapoint element for the given alias.
Synopsis
string dpAliasToName(string alias);
Parameters
| Parameter | Description |
|---|---|
| alias | Alias |
Return Value
Datapoint of the alias or empty string
Errors
The function getLastError() returns the code of any errors that have occurred. A message is issued in the event of missing arguments.
Description
The function dpAliasToName() returns the datapoint element for the given alias, an empty string is returned in the event of errors.
Example
main()
{
string s;
s=dpAliasToName("P12Bef_E"); // Returns a datapoint
DebugN(s)
}
Assignment
Datapoint function
Availability
CTRL
