MoveChildIOD method

Delphi example

C++Builder example

 

Builder Syntax

int __fastcall MoveChildIOD(void);

Delphi Syntax

function MoveChildIOD: Integer;

Overview

Refer to Working with Information Object Definitions.

Remarks

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

This method requires that the IOD Structure 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 CurrentIOD property will be set to Nil (NULL). For example:

image\GetChild.gif

 

If the CurrentIOD property contains:

The CurrentIOD property will be updated with:

Item 1

Nil (NULL)

Item 2

Item 3

Item 4

Item 5

Item 6

Nil (NULL)

 

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

MoveFirstIOD method

MoveLastIOD method

MoveNextIOD method

MoveRootIOD method

MoveParentIOD method

Note: You 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, MoveParentIOD method