Introduced in QPR 7.3.2
Creates a new folder to the server under the defined parent folder. In the case the parent folder is 0, the new folder is created to the root level.
PGApplication.CreateFolder(FolderName, ParentFolderId, out FolderId)
FolderName: String. Name of the new folder.
ParentFolderId: Integer. ID of the server folder under which the new folder is created. 0 creates the new folder under the main level.
out FolderId: Integer. Variant for storing the ID of the new folder created with this function.
Below are listed the return values that this function can return:
iResult = PGApplication.CreateFolder("New Folder", 0, outFolder)