Item

www.altova.com このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  The MapForce API > Object Reference > Project >

Item

Property: Item(i_nItemIndex as Integer) as ProjectItem (read-only)

 

Description

Returns the child at i_nItemIndex 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.

 

Errors


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

}

 


(C) 2019 Altova GmbH