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 / Procedimiento WLanguage
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
WLanguage procedure called by zipExtractDirectory to manage progress bars
WLanguage procedure ("Callback") used by zipExtractDirectory to manage the progress of files being extracted from the archive.
Ejemplo
Archive is zipArchive
// Open an archive
IF zipOpen(Archive, "C:\Archives\Archive.zip") = 0 THEN
	// Extract the "Temp" directory at the root of the archive file tree
	zipExtractDirectory(Archive, "Temp", zipDrive, zipOverwrite, ...
			zipExtractDirectory_Callback, zipExtractDirectory_ProgressBarCallback)
END

// This procedure is used to manage the progress bar.
	INTERNAL PROCEDURE zipExtractDirectory_ProgressBarCallback(CurrentFile is string, 
		OverallProgress is int, FileProgress is int)
		IF OverallProgress < 100 THEN
			ProgressBar(OverallProgress, 100, CurrentFile)
		ELSE
			ProgressBar()
		END
	END
Sintaxis
zipExtractDirectory_CallbackProgressBar(<Current file> , <Overall progress percentage> , <File progress percentage>)
<Current file>: Character string
Name of the file being processed.
<Overall progress percentage>: Integer
Progress percentage of the extraction of files from the archive.
<File progress percentage>: Integer
Progress percentage of the extraction of the current file from the archive.
Observaciones
If you are using a 7z archive, only <Overall progress percentage> is specified. <File progress percentage> will have the same value.
Versión mínima requerida
  • Versión 26
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 03/04/2025

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