MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Creating New Dataset

This is a discussion on Creating New Dataset within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; how can you create new dataset from an existing one? Thanks in advance...


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 08-16-2005
Junior Member
Yellow Belt
 
Join Date: Dec 2004
Posts: 25
Creating New Dataset

how can you create new dataset from an existing one?

Thanks in advance
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 08-17-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
Hi,

Code:
            MapPoint.DataSet newSet= MP.ActiveMap.DataSets.AddPushpinSet("new set");
            rs.MoveFirst();
            while (!rs.EOF) {
                rs.Pushpin.MoveTo(newSet);
                rs.MoveNext();
            }
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 08-22-2005
Junior Member
Yellow Belt
 
Join Date: Dec 2004
Posts: 25
Errors in creating new dataset

Hi, I am getting an error 'Object does not support this property or method' when I try to creat a new dataset. I am using DisplayDataMap to import data. Where am I going wrong?

Dim objmap As MapPointCtl.Map
Dim objLoc As MapPointCtl.location
Dim objpushpin As MapPointCtl.Pushpin
Dim objdataset As MapPointCtl.DataSet
Dim objRS As MapPointCtl.Recordset
Dim objPin As MapPoint.Pushpin

Dim objSymbol As MapPoint.Symbol
Dim objPsymbol As MapPointCtl.Symbol
Dim objRS1 As MapPointCtl.Recordset
Dim objRS2 As MapPointCtl.Recordset
Dim set1 As MapPoint.DataSet
'////////////////////////////////////////////////////////////////////////////

Set objdataset = objmap.DataSets(1)

Set objRS = objdataset.QueryAllRecords '???
Set objRS1 = objRS
Set objRS2 = objRS


Set set1 = objmap.DataSets.AddPushpinSet("Test")

Do While Not objRS2.EOF
location = objRS.Fields(1)
Set objLoc = objmap.FindResults(location).Item(1) 'Works
Set objPin = objmap.FindPushpin(objRS2.Fields(3))
Set objPin = objmap.AddPushpin(objLoc)
objPin.MoveTo (set1) 'THIS IS WHERE I GET THE ERROR 'Object does not support this method or propertry'

I will be very grateful if you are to help.

Thanks in advance
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 08-23-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
Hi,

I never used DisplayDatamap. Maybe the problem is in there ? Try first something simple and see if this works like this example:

Code:
            Map map = MP.ActiveMap;
            Location loc = map.GetLocation(50, 4, 1);
            Pushpin pp = map.AddPushpin(loc, "Wilfried");
            MapPoint.DataSet newSet = map.DataSets.AddPushpinSet("New set");
            pp.MoveTo(newSet);
Is in C# but you can easely convert it to VB and try it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 08-23-2005
Member
Green Belt
 
Join Date: Mar 2005
Posts: 96
Hi,



Quote:
objPin.MoveTo (set1) 'THIS IS WHERE I GET THE ERROR 'Object does not support this method or propertry'
Try this and replace the line where you have the error:

Code:
objPin.MoveTo objmap.DataSets.Item("Test")

I didn't the test, but I think this should be working! I hope.

Bye
__________________
Mohamed
www.AtlasCouscous.com
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
creating, 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
Creating an Add-in in VS .net Anonymous MP2K Magazine Articles 2 02-18-2005 07:21 PM
need help in creating map of a city in vb Anonymous MapPoint 2006/2009 Discussion 1 02-29-2004 12:19 PM
Creating a tooltip on a map Anonymous MapPoint 2006/2009 Discussion 0 01-20-2004 07:09 AM
Creating a Route Anonymous MapPoint 2006/2009 Discussion 3 08-01-2003 09:44 AM
Creating new maps Anonymous MapPoint 2006/2009 Discussion 0 09-25-2002 01:32 PM


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

Paphos Flights
With a vibrant nightlife and lots of things to see and do Paphos holidays have a great deal to offer for families and couples alike. Book cheap Paphos flights online.

Flights to Spain
Find and book flights to Spain. Travel Counsellors can help with travel to Spain including flights and accommodation.

Flights to Cape Town
Before booking flights to Cape Town visit dealchecker.co.uk to make sure you are getting the best deal in town. Visit online today and try the holiday search for free.

St Lucia Holidays
St Lucia holidays offer something for everyone. Enjoyed by families and young couples alike, St Lucia is a great destination. See online!

Canaries
Find out all about the Canaries when you check out the ulookubook.com travel guides. Not only can you get a great holiday deal but you can find out useful information about potential holiday destinations.

Comparison Holidays
Travel.co.uk is a travel comparison service which makes it easy for you to find and plan the best holidays.

Cheap Holidays to Florida
Cash strapped? Get info on cheap holidays to Florida at On The Beach.


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