FolderItem.TemporaryFile

From Xojo Documentation

Revision as of 14:53, 7 October 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Shared Method

FolderItem.TemporaryFile()

New in 2019r2

Supported for all project types and targets.

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.