PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Deleting a directory
  • Deleting a directory (WEBDEV)
fRemoveDir (Example)
Deleting a directory
Windows MobileStored procedures
The following code is used to delete a directory. The directory to delete is selected by the user with fSelectDir.
// -- Click code on BTN_DeleteDirectory
// Declare the variables
ResDeletion is boolean
NameDirectoryPath is string
// Select the directory
NameDirectoryPath = fSelectDir("", "Select a directory", ...
"Select the directory to delete")
// Delete the selected directory
ResDeletion = fRemoveDir(NameDirectoryPath, frRecursive)
// Error?
IF ResDeletion = True THEN
Info("The directory was deleted")
ELSE
  // Display the error message
  Error(ErrorInfo(errMessage))
END
Deleting a directory (WEBDEV)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment