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

Import data from a text file

This is a discussion on Import data from a text file within the MapPoint Desktop 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. ...

  1. #1
    Val
    Val is offline Junior Member White Belt
    Join Date
    Dec 2002
    Posts
    8

    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 !

  2. #2
    Joakim is offline 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.

  3. #3
    Val
    Val is offline Junior Member White Belt
    Join Date
    Dec 2002
    Posts
    8

    Thanks

    Thanks Joakim !

    It's cool !!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Possible to batch file/macro Import Data Wizard?
    By Oyjord in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-31-2005, 06:05 PM
  2. Import data from a file into Map Point using VB Code?.....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-29-2004, 02:48 PM
  3. Import NMEA-data from a file into mappoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-19-2003, 01:17 PM
  4. to import data of one access file into another using vb code
    By bushi_khan in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-14-2003, 03:12 AM
  5. Say I import a data file containing company names,....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-14-2002, 02:00 PM

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