TdxPSExplorerFolder.CreateFolder Method
Creates a new folder within the current folder.
Declaration
function CreateFolder: TdxPSExplorerFolder; virtual;
Returns
Type |
---|
TdxPSExplorerFolder |
Remarks
Use the CreateFolder method to create a new child folder within the current folder. The method returns an object representing the folder created. Use this object’s properties and methods to initialize the folder as needed. To set the folder’s name, use the returned object’s Name property.
Note that you can also use the explorer’s CreateNewFolder method to perform the same task, in that case, you will pass the parent folder as the method’s parameter.
When using the explorer components (TdxPSFileBasedExplorer and TdxPSDBBasedExplorer), the method will return either the TdxPSFileBasedExplorerFolder or TdxPSDBBasedExplorerFolder object respectively. Thus, you will then need to perform typecasts to use the created folder’s specific members.