MoveParentIOD method (ILEADDicomDS)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short MoveParentIOD ();

Overview

Refer to Working with Information Object Definitions.

Remarks

Updates the CurrentIOD property with the parent of the item specified in the CurrentIOD property.

This method requires that the IOD Structure is evaluated as a tree structure.

The parent is the ancestor one level higher than the specified item. If the specified item is a Level 0 item, this method will set the CurrentIOD property to 0. Please note that the numbering of the items in this illustration is arbitrary and does not imply order.

image\GetPrnt.gif

If the CurrentIOD property contains:

The CurrentIOD property will be updated with:

Item 1

NULL

Item 2

Item 3

Item 4

Item3

Item 5

Item 6

The following methods will also help you navigate the IOD Structure:

MoveFirstIOD method

MoveLastIOD method

MoveNextIOD method

MoveRootIOD method

MoveChildIOD method

Note: Visual Basic users can either check the return value of the method, or capture and process errors to determine whether the MovexxxIOD methods have completed successfully. For an example of capturing errors, refer to any of the MovexxxIOD method examples.

See Also

Elements:

MoveFirstIOD method, MoveLastIOD method, MoveNextIOD method, MovePrevIOD method, MoveRootIOD method, MoveChildIOD method

Topics:

Information Object Definitions: Maneuvering Through the IOD Table