TreeListItemFromNodeId

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber TreeListItemFromNodeId( SalString sNodeId )

The TreeListItemFromNodeId method returns the item handle for the node with the specified node identifier.

Parameters

Name Description
SalString sNodeId Identifier (name of the node data) of the node for which to find the item handle.

Returns

The return value is the item handle of the first node with the specified node identifier.

Comments

The node identifier is the name of the msgNodeData parameter passed to the TreeListNodeInsert method.

Note: Only the first node with a matching id is returned. There is nothing to stop applications from inserting multiple nodes with identical id's

Example

Set hItem = TreeListItemFromNodeId( '1005' )
CallCall SetFlags( hItem, ITEM_IsParent, FALSE )
C# coding
hItemCut = lbSubProjects.TreeListItemFromNodeId(sSubProject);
lbSubProjects.TreeListNodeDelete(hItemCut);