Community of MapPoint and Virtual Earth Users and Developers
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...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Hi, Code: MapPoint.DataSet newSet= MP.ActiveMap.DataSets.AddPushpinSet("new set");
rs.MoveFirst();
while (!rs.EOF) {
rs.Pushpin.MoveTo(newSet);
rs.MoveNext();
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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 |
| |||
|
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);
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi, Quote:
Code: objPin.MoveTo objmap.DataSets.Item("Test")
I didn't the test, but I think this should be working! I hope. Bye |
![]() |
| Tags |
| creating, dataset |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
Bodrum Holiday
Check out the picturesque towns on your Bodrum holiday... Book through UlookUbook!