RunBrowseForFSObjectDialog (open)
Run the 'browse for object' dialog, returning a single object
Syntax
LOADLIB "mod::publisher/lib/dialogs.whlib";
INTEGER FUNCTION RunBrowseForFSObjectDialog(OBJECT parentscreen, RECORD options)Parameters
OBJECT parentscreenScreen invoking us
RECORD optionsOptions
BOOLEAN acceptfilesAccept files. (defaults to TRUE)
BOOLEAN acceptfoldersAccept folders. (defaults to TRUE)
BOOLEAN acceptforeignfoldersAccept selection of foreign folders (defaults to FALSE)
STRING ARRAY accepttypesList of acceptable WHFS types for selection
INTEGER folderFolder to preselect, if no value is given. If 0, preselect based on last selected folder. If -1, select the root
BOOLEAN hideviewtypeRemove the view type (list/thumbnails selector) control
INTEGER recyclebinidID for the recyclebin. If not set, no recyclebin will be available in the browse dialog
INTEGER ARRAY rootsRoot folders to show. If empty, shows all root folders
INTEGER valueCurrently selected item
Return value
INTEGERSelected object, or 0 if the dialog was cancelled