MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Having Problems with LinkData w/ Addresses

This is a discussion on Having Problems with LinkData w/ Addresses within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-11-2003
Junior Member
White Belt
 
Join Date: Nov 2003
Posts: 5
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
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 11-12-2003
Junior Member
White Belt
 
Join Date: Nov 2003
Posts: 2
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
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


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
Linking LinkData DrewD MapPoint 2006/2009 Discussion 0 02-10-2004 10:22 AM
LinkData and VC++ sowtschi MapPoint 2006/2009 Discussion 0 07-07-2003 09:32 AM
LinkData with UDL file in VB 6 App Wim MapPoint 2006/2009 Discussion 1 04-03-2003 06:04 AM
I have a VB6 app using LINKDATA to get to a Access.... Anonymous MapPoint 2006/2009 Discussion 3 08-06-2002 11:06 PM
Is it possible to use the Linkdata() method to con.... Anonymous MapPoint 2006/2009 Discussion 1 04-26-2002 08:06 AM


All times are GMT -5. The time now is 08:38 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Cheap Flights to Madeira
Save your money to spend out in Madeira. Use Holiday Hypermarket to find cheap flights to Madeira and cheap accommodation too.

Flights to Italy
Find cheap flights to Italy on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Italy.

Flights Canada
Our search results will show you a selection of airlines, travel agents and tour operators offering cheap flights to Canada. See for yourself who has the cheapest deals.

Holidays to Mauritius
Visit the paradise island in your holidays to Mauritius. Enjoy the friendliness of the locals, the warm of the sun and the beauty of the views!

Cheap Spain Holidays
Stay well informed when you are searching for cheap holidays online. For useful advice on when to book cheap Spain holidays make sure you look on ulookubook.com

Family package holidays
Save a lot of time and opt for one of the great family package holidays at Travel.co.uk

Holidays in Sharm el Sheikh
Need booking info on holidays in Sharm el Sheikh? Visit On The Beach for more information!


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