MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Dataset Copy/Paste

This is a discussion on Dataset Copy/Paste within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; What is the purpose of the Copy/Cut/Paste methods of the dataset object? I assumed that it was there so you ...


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 09-30-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 6
Dataset Copy/Paste

What is the purpose of the Copy/Cut/Paste methods of the dataset object? I assumed that it was there so you could copy/cut/paste a dataset of pushpins. In theory, if this were true, you could have two instances of the MP control and copy/paste full pin datasets between the two instances. This would allow you to build a pseudo-layering technique and/or do double-buffering of the map drawings.

DisplayMap.ActiveMap.DataSets.Item("My Stuff").Copy()
LayersMap.ActiveMap.DataSets.AddPushpinSet("My Stuff").Paste()

The code above actually compiles and runs with no issue. And if you display the Dataset.Count property of the second control (LayersMap) it now contains an additional dataset named "My Stuff". This problem it seems is that I have not been able to get the secondary map to actually show the pushpins on the map.

Why not? This seems like it *should* work. I even tried adding a pushpin to that set and then deleting it to force the map to refresh. No dice.

Any thoughts?? This would really be cool if this idea could actually be made to work. Opens up a lot of possibilities.

Toby Miller
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 09-30-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 6
I am referring to MP2004 btw...
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 09-30-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 6
Well after researching further, the Dataset.Copy and Dataset.Paste commands only deal with the dataset definition itself and not the underlying pushpins (recordset). If you display Dataset.RecordCount() after the paste it is 0. What useful purpose does this serve?

Does anyone see any magical way to make this work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 11-10-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
This will do what you are wanting it to do.
Rather than:
DisplayMap.ActiveMap.DataSets.Item("My Stuff").Copy()
LayersMap.ActiveMap.DataSets.AddPushpinSet("My Stuff").Paste()
Try:
DisplayMap.ActiveMap.DataSets.Item("My Stuff").Copy()
LayersMap.ActiveMap.Paste()

I have gotten this to achieve the desired "layering" effect.
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
copy or paste, dataset


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
DataSet.Paste: Exception from HRESULT: 0x80040E04 (vb.NET) thomas MapPoint 2006/2009 Discussion 4 03-14-2006 03:09 PM
Would like to buy a used copy of MP2002 or S&T2002. Jimsim MapPoint 2006/2009 Discussion 3 04-08-2005 10:28 AM
Cut and Paste Problem with Word 2003 and MapPoint 2004 brubli MapPoint 2006/2009 Discussion 0 10-21-2004 05:26 PM
Problems with copy and paste of user-defined territories Ute MapPoint 2006/2009 Discussion 2 04-14-2003 12:38 PM
Hi there - I am trying to copy several maps into P.... Anonymous MapPoint 2006/2009 Discussion 1 07-01-2002 04:42 PM


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


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