Item

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  The MapForce API > Object Reference > Interfaces > Project > Properties >

Item

Returns the child at n position of the project's root. The index is zero-based. The largest valid index is Count-1. For an alternative to visit all children, see _NewEnum.

 

Signature

Item this(in n:Integer) : ProjectItem

 

Errors

Error code

Description

1500

The object is no longer valid.

 

Examples

// -----------------------------------------------------------

// JScript code snippet - enumerate children using Count and Item.

for( nItemIndex = 0; nItemIndex < objProject.Count; nItemIndex++ )

{

    objProjectItem = objProject.Item(nItemIndex);

    // do something with project item here

}


© 2019 Altova GmbH