ItemByName method: Folder collection
Syntax
ItemByName(Name)
Description
The ItemByName method returns the Folder object with the name Name.
Parameters
| Parameter | Description |
|---|---|
|
Name |
Specify the name of an existing folder within the folder collection. If you specify an invalid name, the object is NULL. You must specify a name, not a label. |
Returns
A folder object if successful, NULL otherwise.
Example
&DeptFldr = &MyPortal.RootFolder.Folders.ItemByName(&Dept_Name);