Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Use the FileSet To Variable action to output the list of files to a FinalBuilder variable in the chosen format
  2. Use the FileSet directly in script code to iterate the fileset or generate a string containing the files in the fileset, eg. MyFileSet.Count
  3. Use the FileSet directly in fields of FinalBuilder actions using the variable syntax, eg. %MyFileSet.File1%

Methods of a FileSet

The methods of a FileSet can be accessed in both script and via the variable syntax in the fields of actions using the following syntax:

...

Specifying the separator type overrides the default separator character as specified in the FileSet Define action.  Can be appended to the AllFiles method.

Examples

Count

To retrieve the count of files in the fileset:

Variable SyntaxScript
%MyFileSet.Count%
MyFileSet.Count

File X

To retrieve file 10 in the FileSet:

Variable SyntaxScript
%MyFileSet.File10%
MyFileSet.File10

File X with quoting

To retrieve file 5 in the FileSet overriding the default quoting to use double quotes:

Variable SyntaxScript
%MyFileSet.File5:quote=double%
MyFileSet.OutputQuoting = qtDouble
MyFileSet.File5

File X with seperator

To retrieve file 5 in the FileSet overriding the default separator:

Variable SyntaxScript
%MyFileSet.File5:sep=comma%
MyFileSet.OutputSeparator = spComma
MyFileSet.File5

All files

To retrieve all files in the FileSet:

Variable SyntaxScript
%MyFileSet.AllFiles%
MyFileSet.AllFiles

All files with quotation and separator

To retrieve all files in the FileSet overriding the default separator and quote type:

...