Scilab Function
Last update : 27/2/2006
tk_MFsavefile - dialog to get a file path for writing with multiple extension filters
Calling Sequence
-
filepath=tk_MFsavefile([title='string'][,path='starting path'][,ini='initial file name'][,foo='additional tk options'])
-
filepath=tk_MFsavefile(file_mask,[title='string'])
-
filepath=tk_MFsavefile(file_mask,path,[title='string'])
-
filepath=tk_MFsavefile(file_mask,path,title)
-
filepath=tk_MFsavefile(file_mask,path,title,ini,foo)
Parameters
-
file_mask
: a character string which gives the file mask to use for file selection.
file_mask
is written with Unix convention. the default value is '*'. format: "{{typename} {extension extension ...}} {{typename} {extnsion extension ...}} ..."
-
typename
is discriptive name e.g. SciLab Files
-
extension
one or more extension e.g. .sci .sce
-
path
: a character string which gives the initial directory used for file search. by default tk_savefile uses the previously selected directory.
-
title
: a character string which appears as title of the dialoge, default is "save".
-
ini
: a character string which could be used to give a default name.
-
foo
: a character string which could be used to path additional Tcl/Tk options to the "tk_getSaveFile" Tcl/Tk function, see Tcl/Tk manual for this informations.
-
filepath
: is the user selected file path if user answers "Ok" or the " " string if user answers "Cancel"
-
title='string'
:Optional arguments which gives the title for the tk_savefile window.
Description
Creates a dialog window for output file selection
Examples
tk_MFsavefile()
tk_MFsavefile('{{SciLab Files} {.sci .sce}} {{All Files} *}','SCI/macros/xdess')
tk_MFsavefile(title='Choose a file name ')
tk_MFsavefile(title='Choose a file name ', ini="nefile.txt")
See Also
xgetfile
,
tk_getdir
,
tk_getfile
,
tk_savefile
,
tk_MFgetfile
,
tk_MFgetdir
,
file
,
fileinfo
,