FolderItem.TemporaryFile

From Xojo Documentation

Shared Method

FolderItem.TemporaryFile()

New in 2019r2

The TemporaryFile function creates a FolderItem object in the current Temporary Folder. See the SpecialFolder module for information on the paths for each platform.

Syntax

result=TemporaryFile

Part Type Description
result FolderItem FolderItem object that refers to a document in the Temporary Folder.

Notes

On Xojo Cloud, you are restricted to using the specific names returned by this method. If you need a generic folder for your own temporary files, use SpecialFolder.Temporary instead.

Examples

The following code creates FolderItem in the active Temporary folder and displays its absolute pathname.

Var f As FolderItem
f = FolderItem.TemporaryFile
MessageBox(f.NativePath)

See Also

FolderItem class, SpecialFolder module.