v5.1
Launches a browse session to pick a particular folder. The
browser opens with the specified folder (DefaultFolder).
The folder that has been picked is returned, or an empty string if
the user clicked Cancel on the folder picker dialog.
String XSIUIToolkit.PickFolder( String in_DefaultFolder, String in_Title ); |
oString = XSIUIToolkit.PickFolder( DefaultFolder, [Title] ); |
Parameter | Type | Description |
---|---|---|
DefaultFolder | String | Default folder to start browsing from |
Title | String | Title of the folder browser. |
var defaultpath = Application.InstallationPath( siProjectPath ) + XSIUtils.Slash + "Models"; var folder = XSIUIToolkit.PickFolder( defaultpath, "SDK Example" ) ; if ( folder.length == 0 ) { LogMessage( "Cancelled" ) ; } else { LogMessage( "Folder picked : " + folder ) ; } |