AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Deleting a file
  • Deleting a file (WEBDEV)
Deleting a file
WINDEVReportes y ConsultasJavaCódigo de Usuario (UMC) The following code is used to delete a file. The file to be deleted is selected with 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)
WEBDEV - Código ServidorPHPAjax The following code is used to delete a file.
// Declare the variables
FileToDelete is string
ResDeletion is boolean
// Select the file to delete
FileToDelete = "C:\MyDirectories\File.doc"
// 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
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local