AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Finding out the size of a file before compression
fSizeUncompressed (Example)
Finding out the size of a file before compression
The following code is used to find out the size of a file before compression.
// Declare the variables
FilePath is string
ResDecompressedSize is int
// Select a file
FilePath = "C:\MyDirectories\File.do_"
// Retrieve the size of the file before compression
ResDecompressedSize = fSizeUncompressed(FilePath)
// Display an error message if the retrieval was not performed
SWITCH ResDecompressedSize
CASE -1: Error(ErrorInfo(errMessage))
CASE -2: Info("This file was not compressed by fCompress." + ...
 "Unable to find out its size before compression.")
// Display the file size before compression
OTHER CASE: Info("Size of the file before compression: " + ResDecompressedSize + " bytes.")
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: 22/08/2022

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