Community of VE/MapPoint Users and Developers
This is a discussion on Has anyone had any problems setting the value of t.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Has anyone had any problems setting the value of the PreferredDeparture property in the Waypoint object? I was having problems ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| |
| |||
|
I tried the following code in a VB app with the MapPoint ActiveX control called "ctlMapPoint" and a Command button called "cmdTest": Private Sub cmdTest_Click() On Error GoTo ErrSub Dim objMap As MapPointCtl.Map Dim objRoute As MapPointCtl.Route 'Set up the application Set objMap = ctlMapPoint.ActiveMap Set objRoute = objMap.ActiveRoute 'Add two waypoints to the map objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1) objRoute.Waypoints.Add objMap.FindResults("Spokane, WA").Item(1) 'Set the time you'd like depart from the start point objRoute.Waypoints.Item(1).PreferredDeparture = TimeValue("8:00:00 AM") objRoute.Calculate ExitSub: Set objRoute = Nothing Set objMap = Nothing Exit Sub ErrSub: Resume ExitSub End Sub This worked perfectly. - Walt Cygan |
![]() |
| Tags |
| problems, setting |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re-setting Size of Map saved | cableghost | MapPoint 2006/2009 Discussion | 1 | 02-06-2006 12:27 PM |
| Display setting for Map | alwasl8 | MapPoint 2006/2009 Discussion | 1 | 10-07-2005 10:37 PM |
| Setting Dataset at runtime? | shadbell | MapPoint 2006/2009 Discussion | 1 | 12-17-2003 10:25 AM |
| setting addresses in canada, | Anonymous | MapPoint 2006/2009 Discussion | 0 | 10-22-2003 08:27 PM |
| Setting Speeds | aarunprakash | MapPoint 2006/2009 Discussion | 0 | 06-06-2003 01:45 PM |