GetTemporaryFolderItem

From REALbasicWiki

Jump to: navigation, search

Contents

[edit] Prototype

Function GetTemporaryFolderItem() as FolderItem

[edit] Description

GetTemporaryFolderItem returns a FolderItem from the TemporaryFolder representing a file that does not yet exist.

[edit] Discussion

GetTemporaryFolderItem can return Nil for various reasons out of the control of your program. Also, GetTemporaryFolderItem is an insecure solution for servers and similar applications for all of the usual reasons.


[edit] Sample Code

dim tempFile as FolderItem = GetTemporaryFolderItem()
 if tempFile <> nil then
   //proceed
 else
   //handle
end if
Personal tools
related