Need an iterator containing the pushpins

BobFromBoston
04-19-2006, 02:54 PM
Hi,

I need to iterate through the various pushpins previously added to the ActiveMap with the AddPushpin() function. They are displaying fine, but that isn't the problem. I'd like to iterate through each pushpin, check the name (where I will encode the pushpin type), and call pushpin.Delete(). But I don't know how to get ahold of each pushpin.

Can someone tell me the name of the list and how to iterate through the pushpin list?


Thanks,
Bob

Wilfried
04-20-2006, 03:43 PM
Hi,

object o = "My Pushpins";
Recordset rs = MP.ActiveMap.DataSets.get_Item(ref o).QueryAllRecords();
rs.MoveFirst();
while (!rs.EOF) {
// here do what you wants to do
rs.MoveNext();
}

 
Web mp2kmag.com
mapforums.com