ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Creating a unique temporary file
fTempFile (Example)
Creating a unique temporary file
Reports and Queries 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/22/2022

Send a report | Local help