MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




User-defined type not defined

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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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]
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 05-01-2003
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
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

Tags
defined, type, userdefined


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
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


All times are GMT -5. The time now is 01:30 PM.


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


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