MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Import data from a text file

This is a discussion on Import data from a text file within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, (I use the Mappoint's ocx in a VB program). I would like to import data from a text file. ...


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 07-08-2003
Val Val is offline
Junior Member
White Belt
 
Join Date: Dec 2002
Posts: 8
Send a message via MSN to Val
Import data from a text file

Hello,

(I use the Mappoint's ocx in a VB program).

I would like to import data from a text file.

I have create a file wich contains:
first line: title information like "code, town, country..."
Second line: informations like "002,Paris, france..."

So, I ask me how does Mappoint will understand that the second field is the town, the third is the country...

Somebody could ligth me please ?

Thanks !
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 07-08-2003
Junior Member
White Belt
 
Join Date: Jun 2003
Posts: 11
Import Text file to MapPoint

You will use the methods ImportData (if you only do it once) or LinkData (if you want to be able to update the data).

If you use following titles in your text-file, MapPoint will know what to look for:
Street address
Postcode
City
Country/Region
(see clients.mdb in \samples directory of MapPoint)

Then just import it to a dataset on the active map like this:

Me.MapPointControl1.ActiveMap.Datasets.ImportData "Filename.txt"

You can then decide what you want to show in the PushPin balloon with the method SetFieldsVisibleInBalloon.

/Joakim Tornhill
__________________
SpedSoft AB has been working with MapPoint since version 2000 and have the longest experience in Sweden on MapPoint.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-08-2003
Val Val is offline
Junior Member
White Belt
 
Join Date: Dec 2002
Posts: 8
Send a message via MSN to Val
Thanks

Thanks Joakim !

It's cool !!
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
data, file, import, text


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
Possible to batch file/macro Import Data Wizard? Oyjord MapPoint 2006/2009 Discussion 0 05-31-2005 06:05 PM
Import data from a file into Map Point using VB Code?..... Anonymous MapPoint 2006/2009 Discussion 1 10-29-2004 02:48 PM
Import NMEA-data from a file into mappoint Anonymous MapPoint 2006/2009 Discussion 2 11-19-2003 01:17 PM
to import data of one access file into another using vb code bushi_khan MapPoint 2006/2009 Discussion 0 10-14-2003 03:12 AM
Say I import a data file containing company names,.... Anonymous MapPoint 2006/2009 Discussion 1 02-14-2002 02:00 PM


All times are GMT -5. The time now is 05:40 AM.


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 55