MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Clear previous itinerary

This is a discussion on Clear previous itinerary within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, After Calculating an itinerary, how to clear it from the map? Do I close the map and open it ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-03-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Clear previous itinerary

Hi,

After Calculating an itinerary, how to clear it from the map?

Do I close the map and open it again, or there is a method like

CloseAllItinerary


Thanks in advance for any help

Aurelia
[/quote][/code]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 11-03-2004
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
This is a sample from the help file.

Code:
Sub ClearCalculatedRoute()

  Dim objApp As New MapPoint.Application
  Dim objMap As MapPoint.Map
  Dim objRoute As MapPoint.Route

  'Set up the application
  Set objMap = objApp.ActiveMap
  Set objRoute = objMap.ActiveRoute
  objApp.Visible = True
  objApp.UserControl = True

  'Add route stops and calculate the route
  objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
  objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)
  objRoute.Calculate

  'Now clear the route
  objRoute.Clear

  End Sub
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 11-03-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Clear Itinerary

Hi,

Thanks John for your answer.

What I need is not to clear an itinerary just after calculating.
I want to let an itineary on the map and to clear it only if I calculate a new
one or by clicking a button or getting the old itinerary with a method like objRoute.Selection .

The idea I have now is save my addresses in some global variables. But I have to calculate my old itinerary again defore clearing it.

Any other ideas?

Regards
Aurelia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 11-03-2004
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
No problem, just get a hook to the ActiveRoute and use the clear method.

Set objRoute = objMap.ActiveRoute
objRoute.Clear
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 11-03-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thanks John, It was so easy !

Aurelia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Create Itinerary with VB.net Genamo MapPoint 2006/2009 Discussion 1 02-20-2006 04:08 PM
Type of itinerary ifc MapPoint 2006/2009 Discussion 0 04-28-2004 08:32 AM
Clear Push Pin joshnfay MapPoint 2006/2009 Discussion 1 04-26-2003 09:07 PM
How do I prevent old/previous entries that I typed.... Anonymous MapPoint 2006/2009 Discussion 1 07-11-2002 12:10 PM
27/10/01 Thanks for your previous answer but the .... Anonymous MapPoint 2006/2009 Discussion 1 10-26-2001 11:42 PM


All times are GMT -5. The time now is 01:38 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Cheap flights to Corfu
Corfu is a vibrant and spectacular holiday destination. Use Holiday Hypermarket to book cheap accommodation and cheap flights to Corfu.

City Break Holidays
Book city break holidays through Travel Counsellors. A personal travel advisor will help with your city break holiday plans.

Cheap Holidays to Turkey
If you’re looking for cheap holidays to Turkey then dealchecker.co.uk is the place for you! Our search helps you see real prices from the UK’s top holiday companies all in one go.

Barbados Holidays
Barbados holidays can be a wonderful break from the rat race or an exciting, action packed adventure. Plan the perfect holiday in Barbados.

Holidays
For bargain holidays to destinations including Mexico, South Africa, India and more, visit ULookUBook online today. Check out our free travel guides to help you make an informed decision for your holidays.

Holidays
At Travel.co.uk the options for holidays are endless. Do some online comparison shopping!

Fuerteventura Holidays
Visit one of the closest Canary Islands to Africa! Book Fuerteventura holidays at On The Beach!


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51