PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Deleting a file
  • Deleting a file (WEBDEV)
Deleting a file
Reports and Queries The following code is used to delete a file. The file to delete is selected by fSelect.
// Declare the variables
FileToDelete is string
ResDeletion is boolean
// Select the file to delete
FileToDelete = fSelect("", "", "Select the file to delete", ...
"All files (*.*)" + TAB + "*.*", "", fselOpen + fselExist)
// Delete the file
ResDeletion = fDelete(FileToDelete)
// Display the error message if the deletion failed
IF ResDelete = False THEN
Error(ErrorInfo(errMessage))
ELSE
Info("The file was deleted.")
END
Deleting a file (WEBDEV)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment