<< tk_getfile 5-1 5-2 >>
removed >> removed > 5-1 > xgetfile

xgetfile

dialog to get a file path

Calling Sequence

path = xgetfile()
path = xgetfile(file_mask)
path = xgetfile(file_mask, dir)
path = xgetfile(file_mask, dir, title)

path = xgetfile(. title='string')

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 '*'.

dir

a character string which gives the initial directory used for file search. by default xgetfile 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 arguments which gives the title for the xgetfile window.

Description

Creates a dialog window for file selection

Examples

xgetfile()
xgetfile(title="Choose a file name")
xgetfile("*.sci")
xgetfile("*.sci", title="Choose a file name")
xgetfile("*.sci", "SCI/modules/gui/macros/")
xgetfile("*.sci", "SCI/modules/gui/macros/", title="Choose a file name")
xgetfile("*.sci", "SCI/modules/gui/macros/", "Choose a file name")

See Also

History

VersionDescription
5.1.1 xgetfile was published up to Scilab 5.1.1. It is replaced with uigetfile.

<< tk_getfile 5-1 5-2 >>