PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the name of a unique temporary file.
Note: fTempFile cannot be used to create the corresponding temporary file. To create and open a temporary file, use fOpenTempFile.
WINDEVWEBDEV - Server codeReports and QueriesJavaPHPAjaxUser code (UMC)
// Retrieve the name of a unique temporary file
ResUniqueTempFile = fTempFile("ABC", "C:\MyDirectories")
// fTempFile returns "C:\MyDirectories\ABCxxx.tmp"
Windows Mobile
// Retrieve the name of a unique temporary file
ResUniqueTempFile = fTempFile("ABC", "\MyDirectories")
// fTempFile returns "\MyDirectories\ABCxxx.tmp"
Syntax
<Result> = fTempFile([<Prefix of Temporary File> [, <Directory of Temporary File>]])
<Result>: Character string
  • Full path of a unique temporary file.
  • Empty string ("") if an error occurred (unable to get the temporary path of system). To find out the error details, use ErrorInfo associated with the errMessage constant.
<Prefix of Temporary File>: Optional character string (with quotes)
Prefix (3 letters) for the name of the temporary file. This parameter is used to prefix the name of the temporary file. Only the first three letters will be taken into account.
Versions 15 and later
WindowsLinux This parameter can be in Ansi or Unicode format.
New in version 15
WindowsLinux This parameter can be in Ansi or Unicode format.
WindowsLinux This parameter can be in Ansi or Unicode format.
<Directory of Temporary File>: Optional character string (with quotes)
Full or relative directory of the temporary file. A UNC path can be used. This directory name may (or may not) end with the "\" character. This directory must exist. Otherwise, a WLanguage error will occur.
If this parameter is not specified, the default directory will be:
  • the temporary directory of Windows (if this directory exists on the current computer),
  • the current directory (if the temporary directory of Windows does not exist on the current computer).
Versions 15 and later
WindowsLinux This parameter can be in Ansi or Unicode format.
New in version 15
WindowsLinux This parameter can be in Ansi or Unicode format.
WindowsLinux This parameter can be in Ansi or Unicode format.
Windows Mobile This directory must be a full directory or a UNC directory. It cannot be a relative directory. If this parameter is not specified, the default directory will be the temporary directory of Windows.
Remarks
fTempFile is used to find out the name of a unique temporary file. This function cannot be used to create the corresponding temporary file. To do so, use fCreate or fOpenTempFile.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Linux wd230std.so
Windows Mobile wp230std.dll
Java wd230java.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment