Close - Automation

 

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

MVSaveTypes

optional; default=mvSaveChangesYes

FileName

String

optional; default="", path, file name, and file extension, if this is not specified the FullName property is used

 

Remarks

 

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