PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Creating a unique temporary file
  • Creating a unique temporary file (WINDEV Mobile)
fTempFile (Example)
Creating a unique temporary file
WINDEVWEBDEV - Server codeReports and QueriesJavaPHPAjaxUser code (UMC) The following code is used to create a unique temporary file.
// Declare the variables
TempFile is string
FileID is int

// Retrieve a unique temporary file
TempFile = fTempFile("ABC", "C:\MyDirectories\Temp")

// Create the file
FileID = fCreate(TempFile)

// Display an error message if the creation was not performed
IF FileID = -1 THEN
Error(ErrorInfo(errMessage))
ELSE
// Processes in the temporary file
...
// End of processes
END
Creating a unique temporary file (WINDEV Mobile)
Windows Mobile The following code is used to create a unique temporary file.
// Declare the variables
TempFile is string
FileID is int

// Retrieve a unique temporary file
TempFile = fTempFile("ABC", "\MyDirectories\Temp")

// Create the file
FileID = fCreate(TempFile)

// Display an error message if the creation was not performed
IF FileID = -1 THEN
Error(ErrorInfo(errMessage))
ELSE
// Processes in the temporary file
...
// End of processes
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment