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

Having Problems with LinkData w/ Addresses

This is a discussion on Having Problems with LinkData w/ Addresses within the MapPoint Desktop Discussion forums, part of the Map Forums category; Trying to use LinkData (in an attempt to lower my memory usage), and while the routine that imports the data ...

  1. #1
    mrobold is offline Junior Member White Belt
    Join Date
    Nov 2003
    Posts
    7

    Having Problems with LinkData w/ Addresses

    Trying to use LinkData (in an attempt to lower my memory usage), and while the routine that imports the data based on Lat/Lon info works fine, the routine that bases plotting on addresses doesn't seem to pull the street address.

    The text file is as follows:

    Code:
    Address1	City	Region	Info1	Info2	Info3	Info4	Info5
    841 N. MAIN ST	CORONA	CA	Foo1	Foo2	Foo3	Foo4	Foo5
    The import seems to get the City and Region, but not the address. Have tried using different headers (Street, Street Address, Street address, Address), and none of them seem to work...the pushpins all end up in the center of the city.

    I even tried building a field array to pass so I could specify what the street address data was, but that didn't work either.

    Code:
    Dim fieldArray As Array = Array.CreateInstance(GetType(Object), 8, 2)
                fieldArray.SetValue("Address1", 0, 0)
                fieldArray.SetValue(MapPoint.GeoFieldType.geoFieldAddress1, 0, 1)
                fieldArray.SetValue("City", 1, 0)
                fieldArray.SetValue(MapPoint.GeoFieldType.geoFieldCity, 1, 1)
                fieldArray.SetValue("Region", 2, 0)
                fieldArray.SetValue(MapPoint.GeoFieldType.geoFieldRegion1, 2, 1)
                fieldArray.SetValue("Info1", 3, 0)
                fieldArray.SetValue(MapPoint.GeoFieldType.geoFieldData, 3, 1)
                fieldArray.SetValue("Info2", 4, 0)
                fieldArray.SetValue(MapPoint.GeoFieldType.geoFieldData, 4, 1)
                fieldArray.SetValue("Info3", 5, 0)
                fieldArray.SetValue(MapPoint.GeoFieldType.geoFieldData, 5, 1)
                fieldArray.SetValue("Info4", 6, 0)
                fieldArray.SetValue(MapPoint.GeoFieldType.geoFieldData, 6, 1)
                fieldArray.SetValue("Info5", 7, 0)
                fieldArray.SetValue(MapPoint.GeoFieldType.geoFieldData, 7, 1)
    
                ' Create the Units dataset
                Dim ds As MapPoint.DataSet
                ds = Me.ActiveMap.DataSets.LinkData(Me.AppPath & "\inc.tmp", "IncNo", fieldArray, MapPoint.GeoCountry.geoCountryMultiCountry, MapPoint.GeoDelimiter.geoDelimiterTab, 0)
    Any help here would be greatly appreciated.

    MR

  2. #2
    Cubistix's Avatar
    Cubistix is offline Junior Member White Belt
    Join Date
    Nov 2003
    Posts
    3

    Change Array

    Hey,

    Don't Assign your Address1 in the 0 (Zero) position of the Array. That probably should fix your problem.. Try leaving the Zero slot blank.

    -Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Linking LinkData
    By DrewD in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-10-2004, 11:22 AM
  2. LinkData and VC++
    By sowtschi in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-07-2003, 10:32 AM
  3. LinkData with UDL file in VB 6 App
    By Wim in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-03-2003, 07:04 AM
  4. I have a VB6 app using LINKDATA to get to a Access....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-07-2002, 12:06 AM
  5. Is it possible to use the Linkdata() method to con....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-26-2002, 09:06 AM

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