PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Creating an external file
  • Creating an external file (WINDEV Mobile)
Creating an external file
WINDEVWEBDEV - Server codeReports and QueriesJavaPHPAjaxUser code (UMC) 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment