<< texprint 5-2 tk_savefile >>
removed >> removed > 5-2 > tk_getdir

tk_getdir

dialog to get a directory path

Calling Sequence

path = tk_getdir()
path = tk_getdir(startdir)
path = tk_getdir(startdir, windowtitle)

path = tk_getdir(…Title="string")

Parameters

startdir

a character string which gives the initial directory used for directory search. By default tk_getdir uses the previously selected directory.

path

is the user selected file path if user answers "Ok" or the " " string if user answers "Cancel"

Title="string"

Optional argument which gives the title for the tk_getdir window. Warning: Use the new variable Title instead of the old variable title.

Description

Creates a dialog window for file selection.

Examples

tk_getdir()
tk_getdir("SCI/modules/")
tk_getdir(Title="Choose a directory name")

See Also

History

VersionDescription
5.2.2 tk_getdir was published up to Scilab 5.2.2. It is replaced with uigetdir.

<< texprint 5-2 tk_savefile >>