Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

User-defined type not defined

This is a discussion on User-defined type not defined within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    User-defined type not defined

    Hello

    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))
    my problem is his doesn't recognise those extensions:
    - As New MapPoint.Application
    - As MapPoint.Map
    - As MapPoint.Location

    does exist an equivalence with Mappoint europe 2002

    have a nice day[/url]

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Are you using the activeX control?

    How are you dimensioning your objmap in other code you have developed so far?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel User-Defined Functions and MapPoint
    By Eric Frost in forum MP2K Magazine Articles
    Replies: 3
    Last Post: 10-02-2008, 05:44 PM
  2. Addshape Radius defined by data file
    By ralber in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-26-2005, 08:04 PM
  3. Type of itinerary
    By ifc in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-28-2004, 08:32 AM
  4. calculating data from manually defined territories
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-22-2003, 11:32 AM
  5. Problems with copy and paste of user-defined territories
    By Ute in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-14-2003, 11:38 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83