WbObjects/dialogOpen

From wiki.swiftlytilting.com

dialogOpen displays the open file dialog.

Syntax:

dialogOpen( [ $title=null, [ &$filter, [ &$path, [ &$filename ] ] ] ] )

Contents

Parameters

$title Dialog window title
$filter Filetype filter format: array(array('Description','*.ext'),array('Type2','*.ty2'))
$path Path of starting folder
$filename  ? (filter by filename?)

Return Value

Returns full path to filename selected

Objects with this method

Example

$filter = array(array('JPG Files','*.jpg'));
$filename = $params['window']->dialogOpen('Choose image',$filter ) ;


Template:WbObjectsMethods

wbObjects Manual

Objects | Methods | Properties | Events