Get File - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Maplets[Examples]

  

GetFile

  

display a Maplet application that allows the user to choose a file

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GetFile(opts)

Parameters

opts

-

equation(s) of the form option=value; where option is one of approvecaption, filefilter, filterdescription, or title; specify options for the Maplet application

Description

• 

The GetFile(opts) calling sequence displays a file dialog that allows the user to choose a file.  The value returned is the string corresponding to the chosen file.  If a file is not selected, an exception is raised.

• 

The GetFile sample Maplet worksheet describes how to write a Maplet application that behaves similarly to this routine by using the Maplets[Elements] package.

• 

The opts argument can contain one or more of the following equations that set Maplet application options.

  

 

  

approvecaption = string or symbol

  

The text that appears on the button that is clicked to select the file. By default, the value is Open.

  

 

  

filefilter = string or symbol

  

The extension of the files that display.  By default, the value is "*", that is, all files are shown. It can also be used with other extensions, for example, "mws", "m", or "mpl".

  

 

  

filterdescription = string or symbol

  

A description of the filefilter. By default, the value is the value of the option filefilter.

  

 

  

title = string or symbol

  

Specifies the Maplet application title.  By default, the title is Get File.

Examples

withMapletsExamples:

GetFiletitle=Get File

/user/maple/maple.lib

(1)

See Also

GetFile Sample Maplet

Maplets[Elements]

Maplets[Elements][FileDialog]

Maplets[Examples]

Overview of Maplet Applications