DirRemove - method of the Pm object
Description:
Deletes the file folder.
Syntax:
Boolean DirRemove(String sDir)
Return value:
true - on success
false - on error
Note:
If a relative path is entered, then it refers to the folder of the running application.
The method fails if the folder is not empty. The method cannot be used for multiple remove of folders (e.g. "*.*").
This method
is not functional in
Web panels.
Example1:
JavaScriptVBScriptSelect and copy to clipboard
Pm.DirRemove("#data:Folder1");
Pm.DirRemove "#data:Folder1"
Example2:
JavaScriptVBScriptSelect and copy to clipboard
var bDirRemove = Pm.DirRemove("#data:Folder1");
Dim bDirRemove
bDirRemove = Pm.DirRemove("#data:Folder1")