GetNextItem

You can call this method to retrieve the Tree item that has the specified relationship, indicated by the Code parameter, to another item whose ID is specified.

Supported by TerraExplorer Viewer

 

JavaScript

 

GetNextItem(

       ID,

       Code)

 

C#

 

string GetNextItem(

       string ID,

       ItemCode Code)

 

C++

 

HRESULT GetNextItem(

       BSTR ID,

       ItemCode Code,

       BSTR * pVal) 

Parameters

ID

The reference item from which the next item is located.

Code

An enum that indicates what item is being searched (In relation to the ID parameter).

·          SELECTED – 10
The next selected item.

·          CHILD – 11
The first child item of ID.

·          FIRSTVISIBLE – 12
The first visible item in the Tree.

·          NEXT – 13
The next sibling item of ID.

·          NEXTVISIBLE – 14
The next visible item after ID.

·          PARENT – 15
The parent item of ID.

·          PREVIOUS – 16
The previous sibling item of ID.

·          PREVIOUSVISIBLE – 17
The previous visible item before ID.

·          ROOT – 18
The root of the Tree.

Return Value

pVal

The ID of the item found while using the reference item’s ID as the reference and the Code as the place to find the new item.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.