Navigation:  OLE Automation > Application > Methods >

SpaceObServer.Application.NextSiblingID

Previous pageReturn to chapter overviewNext page

Description

Returns the identifier (ID) for the next sibling directory of the directory with the passed ID.
 

Syntax

NextSiblingID (SiblingID : <Integer>): <Integer>
 

Parameters

SiblingID

The identifier for the directory to get the next sibling directory of.

Return Value

The ID for the next sibling directory of the passed directory ID. If the directory with the passed ID has no more sibling directories 0 is returned.

 
Example

Do While FolderID<>0
 SOS.GetFolderInformation FolderID, 2, False, Text
 FolderID = SOS.NextSiblingID(FolderID)
Loop

This while loop iterates through all sibling directories of a directory (identified by the initial value of FolderID) and calls SOS.GetFolderInformation() for these directories.