Indexes   

Folders (Collection)

The folders object belongs to a folder.
It lists all the folders contained in the folder. It allows to retrieve Folder objects.

Method Index

Item
Returns a folder using its index or its name from the folder collection.

Methods


o Func Item( iNumber) As
Returns a folder using its index or its name from the folder collection.
Parameters:
iIndex
The index or the name of the folder to retrieve from the collection of folders. As a numerics, this index is the rank of the folder in the collection. The index of the first folder in the collection is 1, and the index of the last folder is Count. As a string, it is the name you assigned to the folder using the
AnyObject.Name property.
Returns:
The retrieved folder
Example:
This example retrieves in ThisFolder the third folder, and it ThatFolder the folder named MyFolder. in the TestFolders folder collection.
 Dim ThisFolder As Folder
 Set ThisFolder = TestFolders.Item(3)
 Dim ThatFolder As Folder
 Set ThatFolder = TestFolders.Item("MyFolder")
 

Copyright © 2006, Dassault Systèmes. All rights reserved.