MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Refresh After A Pushpin Has Been Deleted From the Dataset

This is a discussion on Refresh After A Pushpin Has Been Deleted From the Dataset within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi How can I refresh the map after a pushpin has been deleted from a dataset. I need to display ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed 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-15-2005
Junior Member
Yellow Belt
 
Join Date: Dec 2004
Posts: 25
Refresh After A Pushpin Has Been Deleted From the Dataset

Hi

How can I refresh the map after a pushpin has been deleted from a dataset.

I need to display only the pushpins left in the dataset on the map.

I have to use 'ImportData' method and also using VB6.

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 09-15-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

You can delete it like this:

Code:
            pp  = map.FindPushpin(ppName);
            if (pp != null)
                pp.Delete();
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-15-2005
Junior Member
Yellow Belt
 
Join Date: Dec 2004
Posts: 25
Refresh After A Pushpin Has Been Deleted From the Dataset

Hi

I can delete the pushpin but I cannot refresh the map the new map to show the left Pushpins only

ID = "John Smith"
Set objPin = objMap.FindPushpin(ID)

objPin.Select
objPin.Delete
?? WHAT CODE TO REDRAW NEW DATASET (after a pushpin delete) map ???


What do I add after the last line 'objPin.Delete' to Redraw the map

Currently the deleted pushpin still appear on the map but not in the Dataset i.e "John Smith" does not appear when the Dataset test is done (see below for the dataset test code)


Set objDataSet = objMap.DataSets("New Set")

Set objRecordset = objDataSet.QueryAllRecords

Do Until objRecordset.EOF

MsgBox objRecordset.Pushpin.Name
objRecordset.MoveNext
Loop



Thanks
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 09-15-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

The problem you have is probably because of the use of datasets. If you Add or Delete a PushPin it reflect immediatily on the map. So I suggest you forget DataSets (if that is the reason) and control the Pushpins yourself.
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
dataset, deleted, pushpin, refresh


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
PushPin dataset is saved in .ptm? PeppeM MapPoint 2006/2009 Discussion 1 05-06-2006 12:53 PM
Event get called when pushpin is deleted vidyakulkarni MapPoint 2006/2009 Discussion 1 10-25-2004 09:43 PM
Find Nearby Pushpin in dataset Dazzer Products: Pushpin Tool, Single State Mapper 1 10-16-2003 03:05 PM
Problems with Pushpin dataset Sylvain MapPoint 2006/2009 Discussion 13 11-28-2002 07:08 AM
Is there any way to refresh just one PushPin Layer.... Anonymous MapPoint 2006/2009 Discussion 1 07-27-2001 09:29 AM


All times are GMT -5. The time now is 03:13 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Ibiza Holiday
Visit the party capital of Europe with an Ibiza holiday! Check out the deals online on UlookUbook...



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 56 57 58 59