GetTemporaryFolderItem

From Xojo Documentation

Revision as of 15:05, 27 July 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

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

Syntax

result=GetTemporaryFolderItem

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.

Dim f As FolderItem
f = GetTemporaryFolderItem
MsgBox(f.NativePath)

See Also

FolderItem class, GetFolderItem functions; SpecialFolder module.