MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Setting Dataset at runtime?

This is a discussion on Setting Dataset at runtime? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have a Dataset object that contains several pushpins. I would like to assign it to the current map. Everything ...


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 12-16-2003
Junior Member
White Belt
 
Join Date: Dec 2003
Posts: 4
Setting Dataset at runtime?

I have a Dataset object that contains several pushpins. I
would like to assign it to the current map. Everything I
run into is read only. Is there any way to assign a
Dataset object at runtime?
__________________
Thanks,
Shad
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 12-17-2003
Member
Yellow Belt
 
Join Date: Feb 2003
Posts: 48
I think the pushpin.MoveTo method is what you need:

EITHER

Create a pushpin data set to the current map:
oMap.DataSets.AddPushpinSet "MyNewSet"

create a pushpin:
Set oPushPin = oMap.AddPushpin(loc, "PushPin Name")

move the push pin into the dataset:
oPushPin.MoveTo oMap.DataSets("MyNewSet")

OR (if pins already in DS):

for each obj in omap.datasets(<sourcedataset>)
if typename(obj) = "Pushpin" then
obj.moveto dataset(<destinationdataset>)
end if
next

HTH.

M.
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
Runtime Mappoint plevine1 MapPoint 2006/2009 Discussion 4 06-30-2006 07:40 AM
Change Symbols @ runtime Anonymous MapPoint 2006/2009 Discussion 2 03-10-2005 10:22 AM
Mappoint Runtime Dazzer MapPoint Web Service and Virtual Earth 4 09-30-2004 12:21 PM
Runtime Error 462 Anonymous MapPoint 2006/2009 Discussion 0 09-02-2004 04:07 AM
Runtime R6025 after 2004 iterations... LarryD MapPoint 2006/2009 Discussion 2 07-25-2002 01:23 PM


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

Flights from Stansted
Book cheap flights from Stansted Airport online at Holiday Hypermarket. Use our simple online booking form to take advantage of all the airport facilities

Turkey Weather
Check Turkey Weather before you travel. We provide information on Turkey including weather, flights and accommodation.

Holidays Thailand
Holidays in Thailand are hugely diverse with wonderful luxury resorts and beaches but also some lovely forested mountains with interesting hill tribes. See dealchecker.co.uk.

Cyprus Holidays
Cyprus holidays will offer you a wealth of activities all in the most beautiful surroundings. Relish the beauty of Cyprus on a short break.

Cheap Cyprus Holidays
Finding cheap Cyprus holidays can be difficult unless you know where to look and where to book. With ulookubook.com you can conduct a simple search to find the latest holiday deals to your particular destination.

Travel Deals
Find the very best travel deals on your prime comparison site, Travel.co.uk

Holidays in Goa
Want to know more about Indian culture? Visit On The Beach for information on holidays in Goa.


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