4.2 Top-level items: exit, saveImage and startGUI

saveImage

Function

Structure

Shell

Type

val saveImage: (string * bool) -> unit

Syntax

saveImage (filename, executable?) -> ()

Arguments

filename
A string naming a file.

executable?
A boolean value.

Values

unit

Description

Saves the current session in the image file filename.

If executable? is true it saves an executable, otherwise it saves an image file.

If this function is called from the GUI, then when you restart the saved image, the GUI is restarted automatically.

A saved session takes the normal MLWorks command-line arguments.


MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker