Item
Description
Returns the specified item in the Folders collection.
The argument
to this method can be either a numeric index (itemNum)
or a String (name):
- For VBScript, the argument to the Item method can be either a numeric index or a name.
- For Perl, there are two separate methods:
- Item, which takes a numerical index argument.
- ItemByName, which takes a string name argument.
Note: This method became available in version 7.1.0.
Syntax
VBScript
folders.Item itemNum
folders.Item name
Perl
$folders->Item(itemNum);
$folders->ItemByName(name);
- Identifier
- Description
- folders
- A Folders collection object, representing the set of Folder objects available for fetching as a collection.
- itemNum
- A Long that serves as an index into the collection. This index is 0-based so the first item in the collection is numbered 0, not 1.
- name
- A String that serves as a key into the collection.
- Return value
- The Folder object at the specified location in the collection.