MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




sequence of imported data changes

This is a discussion on sequence of imported data changes within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am importing lat/lon data from a comma separted file into a VB app using the MapPoint ActiveX control. I ...


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 05-27-2003
Harv's Avatar
Junior Member
White Belt
 
Join Date: May 2003
Posts: 3
sequence of imported data changes

I am importing lat/lon data from a comma separted file into a VB app using
the MapPoint ActiveX control. I need to iterate through all the imported
data points (... may be several hundred) in the order that they are in the
source file. However using the ImportData function to import the data into a
dataset then iterating through the recordset does not retain the original
sequence of data points in the source file.

Any idea what causes this, or ways to get around it are appreciated. The
LinkData function behaves the same, even using a sequnce number field as the
primary key.

A code snippet follows (the code simply puts the sequence number of the
record in the source file, which is one of the fields, into a listbox called
List1). Although the following code uses the ShowImportWizard, I have tried
various different versions using ImportData and LinkData functions with the
same result.

Dim objDS As MapPointCtl.DataSet
Dim objRS As MapPointCtl.Recordset

With MPControl.ActiveMap.DataSets
Set objDS = .ShowImportWizard
End With

Set objRS = objDS.QueryAllRecords
objRS.MoveFirst
List1.Clear

Do
List1.AddItem objRS.Fields(1).Value
objRS.MoveNext
Loop Until objRS.EOF

-- Harv Hundal
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 05-27-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,482
Blog Entries: 1
I don't know if there is a way around it except to change your program's logic so you don't have to iterate through in the same order..
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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, imported, sequence


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
Editing Imported Data Rpirong MapPoint 2006/2009 Discussion 1 07-08-2006 05:07 PM
Imported data 132 addresses not matched stevewilson MapPoint 2006/2009 Discussion 1 10-04-2004 06:25 PM
editing push pin and imported data ToddF MapPoint 2006/2009 Discussion 0 04-26-2004 12:47 PM
creating territories using imported data Anonymous MapPoint 2006/2009 Discussion 0 11-04-2003 05:45 PM
When I imported data at the county level for MA as.... Anonymous MapPoint 2006/2009 Discussion 1 08-20-2001 10:18 PM


All times are GMT -5. The time now is 12:34 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