AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
fCompare (Example)
WINDEVWEBDEV - Código ServidorReportes y ConsultasJavaCódigo de Usuario (UMC)PHPAjax Comparing two files
The following code is used to compare the content of two files.
// Declare the variables
ComparedFile1 is string
ComparedFile2 is string
ResComparison is int
 
// Select the first file to compare
ComparedFile1 = "C:\Directories\FileA.doc"
 
// Select the second file to compare
ComparedFile2 = "C:\Directories\FileB.doc"
 
// Compare the two files
ResComparison = fCompare(ComparedFile1, ComparedFile2)
 
// Display the result
SWITCH ResComparison
CASE 0: Info("The two files are identical")
CASE 1: Info("The two files are different")
CASE -1: Info("The first file was not found")
CASE -2: Info("The second file was not found")
CASE -3: Error(ErrorInfo(errMessage))
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: 24/08/2022

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