What type of value is returned by DistanceTo?

OOT
04-04-2008, 09:29 AM
I'm running a DistanceTo comparison in Mappoint 2006 (and VB 2005). I've got two locations that I want to get the DistanceTo value. My question is what the return value represents? Is it miles or kilometers. I'm thinking that it's miles (on FormLoad I set the AxMappointControl1.Units = geoMiles) but I need to be absolutely sure.

Does DistanceTo use the Units measurement from the ActiveMap or does it have it's own default return value?

Thanks in advance for any and all help that you can give. It is very much appreciated.

OOT

Wilfried
04-04-2008, 10:26 AM
Hi,

It uses the units value in activemap.

OOT
04-04-2008, 10:46 AM
Sweet.:cheers2:

Thank you for the answer. Time to mark this thread "resolved" :D

OOT

 
Web mp2kmag.com
mapforums.com