display string as a worksheet in a new window - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Web Features : Worksheet Package : Worksheet/Display

Worksheet[Display] - display string as a worksheet in a new window

Worksheet[DisplayFile] - display a worksheet in a new window

Calling Sequence

Display( fileString )

DisplayFile( fileName )

Parameters

fileString

-

string; contain Maple worksheet or XML tree

fileName

-

string; name of file

Description

• 

The Display function or programmatic worksheet launch feature enables worksheet navigation from within a procedure.

• 

Important: The Display function cannot be used in the Command-line version of Maple.

• 

The Display(fileString) function accepts a Maple worksheet as a text string in either native or XML format, or as an XML tree, and displays (opens) the worksheet in the GUI. The value NULL is returned.

• 

The DisplayFile(fileName) command accepts the name of a worksheet file, saved either in native or XML format, and displays (opens) the worksheet in the GUI. If the name fileName of the file ends with the substring .xml, the file is taken to be a Maple worksheet saved in XML format. Otherwise, the file is assumed to be a Maple worksheet saved in native format. The value NULL is returned. Note: When writing a program, consider using the FileDialog or GetFile Maplet application to obtain the filename and path for the worksheet you want to launch programmatically.

• 

The name of the worksheet has the form ``display[N]'', where `N' is an integer. You can change the name of the worksheet by saving it.

Examples

withWorksheet:

DisplayFiletext.mws

mws:=ReadFiletest.mws

Displaymws

mws_xml:=XMLTools:-ReadFiletest.xml

Displaymws_xml

DisplayXMLTools:-ToStringmws_xml

See Also

filenames, Worksheet, XMLTools


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