Community of VE/MapPoint Users and Developers
This is a discussion on User-defined type not defined within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello I'm very new in mappoint .I use the european's version of mappoint and I want to calculate the distance ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| User-defined type not defined I'm very new in mappoint .I use the european's version of mappoint and I want to calculate the distance between two vehicules. I found this ont that adress http://msdn.microsoft.com/library/de...ublemethod.asp Code: Distance Method Returns the distance between the start point and end point in the current units. Syntax object.Distance (StartLocation, EndLocation) Parameters StartLocation (Location object) Start point of a route. EndLocation (Location object) End point of a route. Result (Double) Returns the distance between the start point and end point. Example Dim objApp As New MapPoint.Application Dim objMap As MapPoint.Map Dim objLoc(1 To 2) As MapPoint.Location Dim dblDistance As Double Set objMap = objApp.NewMap 'Get two known locations Set objLoc(1) = objMap.GetLocation(47.75399, -121.97436, 100) 'Seattle, WA Set objLoc(2) = objMap.GetLocation(47.6779, -122.11032, 100) 'Redmond, WA 'Retrieve the distance MsgBox objMap.Distance(objLoc(1), objLoc(2)) - As New MapPoint.Application - As MapPoint.Map - As MapPoint.Location does exist an equivalence with Mappoint europe 2002 have a nice day[/url] |
| ||||
|
Are you using the activeX control? How are you dimensioning your objmap in other code you have developed so far?
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| defined, type, userdefined |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Excel User-Defined Functions and MapPoint | Eric Frost | MP2K Magazine Articles | 3 | 10-02-2008 06:44 PM |
| Addshape Radius defined by data file | ralber | MapPoint 2006/2009 Discussion | 3 | 10-26-2005 09:04 PM |
| Type of itinerary | ifc | MapPoint 2006/2009 Discussion | 0 | 04-28-2004 09:32 AM |
| calculating data from manually defined territories | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-22-2003 12:32 PM |
| Problems with copy and paste of user-defined territories | Ute | MapPoint 2006/2009 Discussion | 2 | 04-14-2003 12:38 PM |