TheHighHeat
02-07-2008, 04:57 PM
for (inti = 0; i < alPostalCodes.Count; i++)
{
string postalcode = alPostalCodes[i];
MapPoint.Locationlocation = null;
MapPoint.FindResultsfindrs = map.FindAddressResults(null, null, null, null, postalcode, country);
if (findrs == null || findrs.Count <= 0)
{
}
else
{
location = findrs.get_Item(refindex) asMapPoint.Location;
if (location != null)
{
oPin = map.AddPushpin(location, postalcode); oPin.MoveTo(oPPSet);
}
}
}
After this code gets done running I will have "My Pushpins" and the name of the custom pushpin set that I added, but My Pushpins should be empty and it's not, anyone have any ideas what's happening here? Thank you, Jamie
{
string postalcode = alPostalCodes[i];
MapPoint.Locationlocation = null;
MapPoint.FindResultsfindrs = map.FindAddressResults(null, null, null, null, postalcode, country);
if (findrs == null || findrs.Count <= 0)
{
}
else
{
location = findrs.get_Item(refindex) asMapPoint.Location;
if (location != null)
{
oPin = map.AddPushpin(location, postalcode); oPin.MoveTo(oPPSet);
}
}
}
After this code gets done running I will have "My Pushpins" and the name of the custom pushpin set that I added, but My Pushpins should be empty and it's not, anyone have any ideas what's happening here? Thank you, Jamie