Gets the item identified by the iterator, then sets the iterator to the next item in the folder.

syntaxSyntax:
DlxFolder.GetNextChildItem(iterator)

Parameters

Parameter Description
iterator A DlxIterator value returned by a previous GetNextChildItem, GetChildItemIterator, or other function call.

Return Value

Returns the DlxItem corresponding to the iterator. Call the IsValid() method to determine if the item is valid.

Example

  Copy codeCopy code
var folder = DlxApp.GetJob().GetFolder("folder1");
if (folder.IsValid())
{
  var i = folder.GetChildItemIterator();
  while (i.IsValid())
  {
    var item = folder.GetNextChildItem(i);
    DlxApp.Printf(item.GetName());
  }
}

See also