Maplets[Examples] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Examples : Maplets/Examples/GetFile

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

withMaplets[Examples]:

GetFile'title'=Get File

/user/maple/maple.lib

(1)

See Also

GetFile Sample Maplet

Maplets[Elements]

Maplets[Elements][FileDialog]

Maplets[Examples]

Overview of Maplet Applications

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam