The ProjectManager
object provides extensive and granular scripting capabilities.
This section groups the PropertyManager
methods by function.
FileCount: Integer (read-only)
The number of files in the project.
IsDirty: WordBool (read-only)
Boolean. Differences exist between the project as viewed in the Visual Tools and the underlying disk structure.
IsFileSelected: WordBool (read-only)
Boolean. Selects the file in the project.
Path: OleVariant (read-only)
SelectedFile: OleVariant (read-write)
Gets and sets variant property.
AddFile(Filename: OleVariant);
AddFolder(Folder: OleVariant; FolderType: TFolderType; FolderPath: Ole-Variant; Parent: OleVariant);
Adds a new folder to the project root. To add a subfolder to an existing folder, use a folder-level method.
CheckedIn: WordBool;
Boolean. Checks a project into source control.
CreateProject(ProjectName: OleVariant; ProjectPath: OleVariant);
DeployScriptList: OleVariant;
List scripts associated witht the project.
DeployServerList: OleVariant;
Lists servers associated with the project.
FolderList: OleVariant;
Open(ProjectName: OleVariant);
RemoveFile(Filename: OleVariant);
Removes a file from the project.
RemoveFolder(FolderName: OleVariant);
Removes a folder from the project.
Save;
Saves the current project to disk in WDDX format.
SelectFile(Filename: OleVariant);
Selects a file for source control operations.
FolderAddFile(Folder: OleVariant; Filename: OleVariant);
Add a file to the specified folder.
FolderAllFiles(Folder: OleVariant): OleVariant;
Lists all files within the specified project.
FolderChangeType(Folder: OleVariant; FolderType: TFolderType);
FolderContainsFile(Folder: OleVariant; Filename: OleVariant): WordBool;
Boolean. Determines if a file is contained within a project folder.
FolderDeployTarget(Folder: OleVariant; out FolderType: Integer; out FolderTarget: OleVariant);
Gets the folder deployment target and type.
FolderFileCount(Folder: OleVariant): Integer;
Counts the number of files in the project folder.
FolderRemoveFile(Folder: OleVariant; Filename: OleVariant);
Removes file from specified folder.
FolderRenameFile(Folder: OleVariant; OldName: OleVariant; NewName: Ole-Variant);
Renames a file within a project.
FolderSubFolderExists(Folder: OleVariant; SubFolderName: OleVariant): WordBool;
Boolean. Determines if a subfolder exists.
FolderSubFolders(Folder: OleVariant): OleVariant;
Lists all subfolders within the project folder.
FolderType(Folder: OleVariant): Integer;
Returns the specified folder type.
DeploymentScriptName: OleVariant;
Adds a deployment script to the project.
DeploymentScriptCount: Integer;
Returns the number of scripts.
DeploymentScriptList: OleVariant;
Lists all project deployment scripts.
DeploymentScriptRemove(ScriptName: OleVariant);
Removes a deployment script from the project.
DeploymentServerAdd(ServerName: OleVariant; ServerNum: Integer);
Adds a deployment server to the project.
DeploymentServerCount: Integer;
Returns the number of deployment servers.
DeploymentServerList: OleVariant;
DeploymentServerRemove(ServerName: OleVariant);
Removes a deployment server from a project.