Community of VE/MapPoint Users and Developers
This is a discussion on Driver profile in Visual Basic within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I'm developing a software project using the MapPoint Control, but I have a little problem. I can't include rests ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Driver profile in Visual Basic I'm developing a software project using the MapPoint Control, but I have a little problem. I can't include rests in the Directions pane when calculating a route. I'm using this code: Dim oApp As MapPoint.Application Set oApp = GetObject(, "MapPoint.Application") Dim oDrvProf As MapPoint.DriverProfile Set oDrvProf = oApp.ActiveMap.ActiveRoute.DriverProfile oDrvProf.StartTime = "7:00 AM" oDrvProf.EndTime = "8:00 PM" oDrvProf.IncludeRestStops = True oDrvProf.TimeBetweenRests = 4 * geoOneHour oDrvProf.RestStopDuration = 45 * geoOneMinute oDrvProf.DrivingCostUnits = geoCostBasedOnDistance oDrvProf.DrivingCost = "1" Set oRte = oMap.ActiveRoute oRte.Clear With oRte.Waypoints .Add oMap.FindPlaceResults("Burgos")(1) .Add oMap.FindPlaceResults("Santiago de Compostela")(1) .Optimize End With oRte.Calculate 'zoom. oRte.Directions.Location.GoTo Can you tell me where the problem is? I think I'm using it in the right way, but I'm not sure. Thanks a lot. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visual Basic 6.0 | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-06-2004 06:17 AM |
| Visual Basic 6.0 | fantef | MapPoint 2006/2009 Discussion | 0 | 04-15-2004 11:41 AM |
| mappoint, visual c++ vs visual basic | Anonymous | MapPoint 2006/2009 Discussion | 6 | 03-30-2004 09:17 PM |
| Driver profile in Visual Basic | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-01-2003 10:34 AM |
| Visual basic or visual c++ in mappoint | misterb83 | MapPoint 2006/2009 Discussion | 1 | 02-14-2003 08:31 AM |
Ski Holidays Andorra
Ski holidays in Andorra offer value for money right across the board. Clothes, meals and accommodation are great value with duty free prices. Book great value ski holidays today.
City Breaks
Top 10 City Breaks . Based on holidays booked this year, these are the most popular City Breaks for 2006
Cuba Holidays
After years of neglect by the western world, Cuba is coming back onto the holiday scene. Cuba Holidays are a unique and enjoyable experience. Book at dealchecker.co.uk.
Holidays to Cancun
The Holiday Place has special offers on holidays to Cancun during the month of September. Book a late summer holiday with us!
Canaries
Find out all about the Canaries when you check out the ulookubook.com travel guides. Not only can you get a great holiday deal but you can find out useful information about potential holiday destinations.
Family activity holidays
Family holidays can be full of fun activity. Check out your options at Travel.co.uk
Cheap Sharm el Sheikh Holidays
Visit the Red Sea Riviera! Info on cheap Sharm el Sheikh holidays, found at On The Beach.