InitialDirectory (FileBrowser)

Description

Returns or sets a String containing the initial directory in the file browser.

Note: If the InitialDirectory is an empty string(default) the current working directory is used. The initial directory property is overridden if the user selects another directory during a previous call to the FileBrowser.ShowOpen or FileBrowser.ShowSave method.

C# Syntax

// get accessor
String rtn = FileBrowser.InitialDirectory;

// set accessor
FileBrowser.InitialDirectory = String;

Examples

VBScript Example

dim oFileBrowser
set oFileBrowser = XSIUIToolkit.FileBrowser

oFileBrowser.DialogTitle = "Select a file" ' set the title of the file browser
oFileBrowser.InitialDirectory = "c:\myInitialDir\"
oFileBrowser.Filter = "All Files (*.*)|*.*||" ' Allow selection of all files
oFileBrowser.ShowOpen    ' show an open file dialog

See Also

FileBrowser.ShowOpen

FileBrowser.ShowSave



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index