AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Deleting a directory
  • Deleting a directory (WEBDEV)
fRemoveDir (Example)
Deleting a directory
WINDEVWindowsJavaCódigo de Usuario (UMC)Procedimientos almacenados
The following code is used to delete a directory. The directory to be deleted can be 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)
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: 08/12/2023

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