The Close method closes the current view, optionally asking to save changes first. Returns a Boolean.
Syntax
object.Close( SaveChanges, FileName )
Parameter |
Type |
Description |
SaveChanges |
optional; default=mvSaveChangesYes |
|
FileName |
String |
optional; default="", path, file name, and file extension, if this is not specified the FullName property is used |
Remarks
mvSaveChangesYes prompts you to save changes if this is the last open view on the document and the document has been changed.
Returns true if the window was closed.
The window may not be closed if mvSaveChangesYes operation was canceled.
Example
This example closes a plot window and saves the plot to the file name map1.gsm
Window.Close(SaveChanges:=mvSaveChangesYes, _
FileName:= mvApp.ApplicationFolder + "\Samples\map1.gsm")
Used by: Window object, Document object