Next Previous Up Top Contents Index

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

()

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 2.0 - 29 Jul 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker