A number of built-in scripting classes are available. See also Script Functions.
All the example code below is written in using the Pascal scripting language.
TEnumVariant is a helper class for collections, e.g. FileSystemObject.Drives
Create the object by passing the collection. Then you call ForEach to get each item in the collection. For example:
// Return the list of drives
while DrivesEnum.ForEach(DiskDrive) do begin
If (DiskDrive.IsReady = TRUE) then
If not SBLocation.AddDir(DiskDrive.DriveLetter) then
See the AllDrives.pas example script for an example.
This class is for storing lists of strings. For more information refer to the Delphi help entry for TStringList:
All Content: 2BrightSparks Pte Ltd © 2003-2017