PC SOFT

AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

  • Creating an external file
  • Creating an external file (WINDEV Mobile)
Creating an external file
WINDEVWEBDEV - Server codeReports and QueriesJavaUser code (UMC)PHPAjax The following code is used to create an external file. The created file can be freely accessed by the other applications.
// Declare the variables
FileNameAndPath is string
FileID is int

// Select the file name and path
FileNameAndPath = "C:\Directories\File.txt"

// Create the file
FileID = fCreate(FileNameAndPath)
// Display an error message if the creation was not performed
IF FileID = -1 THEN
Error(ErrorInfo(errMessage))
ELSE
// Processes in the created file
...
// End of processes in the created file
END
Creating an external file (WINDEV Mobile)
Windows Mobile The following code is used to create an external file. The created file can be freely accessed by the other applications.
// Declare the variables
FileNameAndPath is string = "\My Files\File.TXT"
FileID is int

// Create the file
FileID = fCreate(FileNameAndPath)
// Display an error message if the creation was not performed
IF FileID = -1 THEN
Error(ErrorInfo(errMessage))
ELSE
// Processes in the created file
...
// End of processes in the created file
END
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario