RunBrowseForFSObjectsDialog (open)

Run the 'browse for object' dialog, returning multiple objects

Syntax

LOADLIB "mod::publisher/lib/dialogs.whlib";

INTEGER ARRAY FUNCTION RunBrowseForFSObjectsDialog(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 ARRAY value

Currently selected items

Return value

INTEGER ARRAY

Selected objects or an empty array if the dialog was cancelled