spacer2 1_1 1_2
 The MP2K Update!
Front Cover
What's New
Sample Data
MapPoint 2013
Press Releases
MapPoint Forums
Link to MP2Kmag
Wish List
MapPoint Trial
 Earlier Content
Past News Items
Past What's New Announcements

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials

Map Visitors


Using MapPoint in Foxpro

Charlie Parker shares a demo for using MapPoint within Foxpro that he originally prepared for a local Foxpro user group.

If you are a Visual FoxPro developer and want to learn how to use MapPoint in your applications, then here is a handy demo program on how to do that.

The demo program consists of a project, a main program and a form. The main program just kicks off the form. The form has all of the logic for handling MapPoint. The code in the form is commented so you can see fairly easily what it is doing.

Just a few notes on the operation: The "from" and "to" addresses are hard coded in the demo, but you can type in your own addresses or latitude/longitudes. If you enter a latitude/longitude, separate the values with a comma and be sure to check the box that says "Latitude, Longitude".

To have the program look up the location, click the "Compute Route" or the "Compute Distance" button. The times it took to find the locations, compute the route, compute the latitude/longitude, etc. are shown on the bottom of the form.

Remember, this is just a demo, so a minimum of error checking is done. For example, if you enter an invalid latitude or longitude, then you will get a MapPoint error since the program does not validate these before giving them to the MapPoint object. Also, there are a lot of things you can do with the MapPoint object that are not shown in this demo. However, this should get you started so you can try out some of the other features on your own.

Download it here:

NOTE: You must have both Visual FoxPro (any version) and MapPoint installed in order to run the demo program.

Discuss this story in the forum.

Author: Charlie Parker
Email: cparker(AT)
Charlie Parker has over 30 years of experience in designing, developing and supporting software applications. Since 1994, he has been a Project Manager for Fowler Software Design LLC, a custom software developer in Denver, Colorado. For more information on Charlie or on Fowler Software Design, see their web site at

MP2Kmag Internet

 Recent Discussion
-Aldec Active-HDL v10.4.183.6396
-ICADSX.Mechanical v6L1
-Icad mx v7l1
-Agilent.Keysight.Model.Quality MQA v2017
-IBM.Rational.DOORs v9.2
-Agilent.Keysight.Model.Builder MBP v2017
-IBM rational rhapsody V8.30
-Adapt Builder 2018 Win64
-IBM Spss Modeler v14.1 Win32 64
-IBM Rational Tau And DOORS Analyst v4.3
-Actel Libero SoC Platinum 11.5
-IBM Rational SDL and TTCN Suite v6.3
-IAR Embedded Workbench for ARM v8.10.1
-Abvent Twinmotion 2019 x64
-AWR Microwave Office v14.0.9138.4 Win64
-HyperMill Postprocessor
-AWR Design Environment With Analyst v13.0 x64
-Hydrostar ariane7
-AVL workspace v2018
-AVL PreonLab v2.3
-Hydromantis Toxchem v4.3.6.2
-AVEVA.Review v12.2.x64
-Buy Cheap UNDEFEATED x Ultra Boost on 2019mensjordans
Browse GIS books and periodicals
Find a MapPoint Partner or Consultant
Real Estate Columbia, MO Real Estate

Want Your Site To Appear Here?

   © 1999-2012 MP2K. Questions and comments to:
  Microsoft and MapPoint 2002/2004/2006/2009/2010/2011/2013 are either trademarks or registered trademarks of Microsoft.