Returns the object corresponding to the folder identified by the specified name.

syntaxSyntax:
DlxFolder.GetFolder(name)

Parameters

Parameter Description
name The folder name.

Return Value

Returns the object corresponding to the folder. Call the IsValid() method to determine if the object is valid.

Example

  Copy codeCopy code
var folder = DlxApp.GetJob().GetFolder("folder1");
if (folder.IsValid())
{
  folder = folder.GetFolder("folder2");
  if (folder.IsValid())
  {
    var items = folder.GetChildCount();
    for (var index = 0; index < items; index++)
    {
      DlxApp.Printf(folder.GetChildItem(index).GetName());
    }
  }
}

See also