Close the map

Anonymous
07-09-2004, 03:28 AM
Two questions: (MapPoint 2002 + Visual Basic 6)

1. How close the map (MapPoint Control) without receiving on the screen the message 'Save map.ptm?' (Yes/No)

2. How delete all the information in the map (pushpins, routes, ...) and starting in a new map ?

Thanks in advance

Dazzer
07-09-2004, 05:32 AM
Question 1

Do

MappointObject.ActiveMap.Saved = True

Before

MappointObject.Quit()

Where MappointObject = CreateObject("MapPoint.Application")

Question 2

Just dont save the changes, see question 1, and then open a fresh new map or reload a previously saved one

Anonymous
07-09-2004, 06:13 AM
Question 1

Do

MappointObject.ActiveMap.Saved = True

Before

MappointObject.Quit()

Where MappointObject = CreateObject("MapPoint.Application")

Question 2

Just dont save the changes, see question 1, and then open a fresh new map or reload a previously saved one


The proble with the Saved option is that, logically, it is saved in the computer, and I want to avoid it. It is possible?

Dazzer
07-09-2004, 06:18 AM
MappointObject.ActiveMap.Saved = True

Sets mappoint to believe it has already been saved and no changes have been made it doesn't actually physically save the map.

Dazzer
07-09-2004, 06:20 AM
Quote from mappoint help files

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.

 
Web mp2kmag.com
mapforums.com