GetNextItem

You can call this method to retrieve the tree item that has the specified relationship, indicated by the Code parameter, to ItemID.

Supported by TerraExplorer Viewer.

 

HRESULT GetNextItem (

[in] long ItemID,

[in] ItemCode Code,

[out, retval] long *pVal)

 

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.

TE_E_MPTNOTLOADED

An MPT file must be loaded in TerraExplorer for this method to work.

TE_E_NOLICENSE

You are running TerraExplorer Viewer and therefore do not have permission to work with this interface.

Remarks:

This method can be used to traverse the information tree.
See: “Finding and modifying objects”.