Hi there,
I'm using the MapPoint ActiveX through C# .NET.
MapPoint is throwing a COM Exception when I attempt to find a pushpin
by name, where the name is surrounded by square brackets.
ActiveMap.FindPushpin("[TestName]") => fails
ActiveMap.FindPushpin("Test[Name]") => fails
ActiveMap.FindPushpin("[TestName") => fails
ActiveMap.FindPushpin("Test[Name") => fails
ActiveMap.FindPushpin("]TestName[") => succeeds
ActiveMap.FindPushpin("TestName") => succeeds
Of course, the square brackets can easily be removed - just wondering
if anyone has seen this behaviour before or knows why it happens.
Actually what's interesting is that the first call to AddPushpin,
FindPushpin, etc with a "bad" name succeeds. All subsequent calls throw
a COM Exception.
Regards,
Fergus