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 TreeListItemFromTypeAndNodeId(SalNumber nNodeType,
SalString sNodeId)
The TreeListItemFromTypeAndNodeId method returns the item handle for the node with the specified node identifier and the node type.
Name | Description |
---|---|
SalNumber nNodeType | The type of the node for which to find the item handle. |
SalString sNodeId | Identifier (name of the node data) of the node for which to find the item handle. |
The return value is the item handle of the first node with the specified node identifier
The node identifier is the name of the msgNodeData parameter passed to the
TreeListNodeInsert method.
Note that only the first node with a matching id is returned. There is nothing
to stop applications from inserting multiple nodes with identical id:s and node
types.
/// Set hItem = TreeListItemFromTypeAndNodeId( 1, '1005' )
/// Call SetFlags( hItem, ITEM_IsParent, FALSE )
hItem = lbSchedule.TreeListItemFromTypeAndNodeId(1, "1005");