ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • 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 be deleted is selected with fSelect.
// Déclaration des variables
FichierASupprimer is string
ResSuppression is boolean
// Sélection du fichier à supprimer
FichierASupprimer = fSelect("", "", "Sélection du fichier à supprimer", ...
	"Tous fichiers (*.*)" + TAB + "*.*", "", fselOpen + fselExist)
// Suppression du fichier
ResSuppression = fDelete(FichierASupprimer)
// Affichage du message d'erreur si la suppression n'a pas été effectuée
IF ResSuppression = False THEN
	Error(ErrorInfo(errMessage))
ELSE
	Info("Le fichier a été supprimé")
END
Deleting a file (WEBDEV)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help