Share via


Saved property

Returns or sets whether any changes have been made to the map. True if no changes have been made since the map was last saved. If set to True, the user will not be prompted to save changes when closing the map, and all changes made to it since it was last saved will be lost. This property can be set when MapPoint is embedded. Read/write Boolean.

Applies to

Objects:  Map

Syntax

object.Saved

Parameters

Part Description
object Required. An expression that returns a Map object.

Example

    Sub QuitAppWithoutSaving()

  Dim objApp As New MapPoint.Application   Dim objMap As MapPoint.Map
  'Set up the application, add a Pushpin   Set objMap = objApp.ActiveMap   objApp.Visible = True   objApp.UserControl = True   objMap.AddPushpin objMap.FindResults("Seattle, WA")(1)
  'Quit without saving   objApp.ActiveMap.Saved = True   objApp.Quit
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.