cnsGetId
Returns the linked data point 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 data point (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 data point and the node type of the given node. If no data point 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