cnsGetId
Returns the linked datapoint and CNSDataIdentifierType of the given node.
Synopsis
bool cnsGetId(string cnsPath, string &dp [, int &type]);
Parameters
| Parameter | Description |
|---|---|
| cnsPath | The ID path of the node |
| dp | Receives the datapoint (element) name |
| type | Receives the node type |
Return value
Returns TRUE if successful or FALSE in case of an error.
Errors
Possible errors:
-
Path not found
Description
This function returns the linked datapoint and the node type of the given node. If no datapoint is linked to the node an empty string is returned.
main()
{
string dp;
int type;
cnsGetId("System1.View123:TreeA.NodeA", dp, type);
DebugN(dp, type);
}
Availability
UI, CTRL