InsertIOD method

Delphi example

C++Builder example

 

Builder Syntax

int __fastcall InsertIOD(bool bChild, Byte nType, Cardinal uCode, System::AnsiString sName, Word nUsage, System::AnsiString sDescription);

Delphi Syntax

function InsertIOD(bChild: Boolean; nType: Byte; uCode: Cardinal; sName: String; nUsage: Word; sDescription: String): Integer;

Overview

Refer to Working with Information Object Definitions.

Remarks

Inserts a new item in the IOD Structure, based on the value of bChild.

The illustrations below show how items are added to the IOD Structure (internally maintained as a tree), based on the value of bChild.

For the sake of these illustrations, the order of siblings is top to bottom. Therefore, since added items become the last sibling or the last child, these are drawn at the bottom of the appropriate group of items.

In this illustration, the CurrentIOD property contains Item 1 and bChild is False. The new item is added as the last sibling of Item 1.

image\IODIsSib.gif

In this illustration, the CurrentIOD property contains Item 1 and bChild is True. The new item is added as the last child of Item 1.

image\IODIsChd.gif

See Also

Elements:

DeleteIOD method, ResetIOD method, DefaultIOD method