MoveChildElement method (ILEADDicomDS)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short MoveChildElement ();

Overview

Refer to Working with Data Sets.

Remarks

Updates the CurrentElement property to the first child of the item specified in the CurrentElement property.

This method requires that the Data Set is evaluated as a tree structure.

The child is the offspring one level lower than the specified item. If the specified item has no child items, the CurrentElement property will be set to NULL. For example:

image\GetChild.gif

 

If the CurrentElement property contains:

The CurrentElement property will be updated with:

Item 1

NULL

Item 2

Item 3

Item 4

Item 5

Item 6

NULL

 

The following methods will also help you navigate the Data Set:

MoveFirstElement method

MoveLastElement method

MoveNextElement method

MoveRootElement method

MoveParentElement method

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

See Also

Elements:

MoveFirstElement method, MoveLastElement method, MoveNextElement method, MovePrevElement method, MoveRootElement method, MoveParentElement method

Topics:

Data Sets: Maneuvering Through a Data Set