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 parentscreen

Screen invoking us

RECORD options

Options

BOOLEAN acceptfiles

Accept files. (defaults to TRUE)

BOOLEAN acceptfolders

Accept folders. (defaults to TRUE)

BOOLEAN acceptforeignfolders

Accept selection of foreign folders (defaults to FALSE)

STRING ARRAY accepttypes

List of acceptable WHFS types for selection

INTEGER folder

Folder to preselect, if no value is given. If 0, preselect based on last selected folder. If -1, select the root

BOOLEAN hideviewtype

Remove the view type (list/thumbnails selector) control

INTEGER recyclebinid

ID for the recyclebin. If not set, no recyclebin will be available in the browse dialog

INTEGER ARRAY roots

Root folders to show. If empty, shows all root folders

INTEGER value

Currently selected item

Return value

INTEGER

Selected object, or 0 if the dialog was cancelled