Community of VE/MapPoint Users and Developers
This is a discussion on Strange behaviour with square brackets. within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi there, I'm using the MapPoint ActiveX through C# .NET. MapPoint is throwing a COM Exception when I attempt to ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Strange behaviour with square brackets. 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 |
| |||
|
Hi, dont use it (easey remedy) ! Blonde girl go to doctor and tell she hurst in all her body. Everywhere where she push it hurts. After a long investigation the doctor's diagnose was that her finger was broken ... I hope you ar not blond
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Ha, ha
No [Wilfried] I'm not blonde (sadly). Of course I have added some replacement code for square brackets and that makes everything work fine (unfortunately I don't have control over the source of the square brackets.) But, of course it's a hack and I can see someone staring at the code 12 months down the line with madness in their eyes... I guess, to stick with your analogy, I'd really like to know how the blonde managed to break her finger... |
| |||
|
[Hi], I think the hack is probably only solution. I tryed some experiments like trying to escape it or so, but with no result. the '[' trows exception. Wierd. btw: In fact I dont know how she broken her finger. Maybe while checking if she was ill and then pushing to hard
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Displaying a WayPoint without showing the default square | BobFromBoston | MapPoint 2006/2009 Discussion | 2 | 04-20-2006 09:33 PM |
| strange order in the exported Excel flile | pileggi | MapPoint 2006/2009 Discussion | 0 | 07-29-2005 10:08 AM |
| How to get the Locations for the 4 vertices of a Square? | cx123 | MapPoint 2006/2009 Discussion | 0 | 10-26-2004 10:01 AM |
| GetPictureFromObject returns strange maps | cd4000 | MapPoint 2006/2009 Discussion | 0 | 08-30-2004 06:12 PM |
| [Why such a behaviour] ??? | Vincent BENNER | MapPoint 2006/2009 Discussion | 0 | 06-03-2003 11:03 AM |
Cheap Ski Holidays Austria
For the best cheap ski holidays, Austria has a charm all of its own. Check out the unspoilt, picturesque villages with superb ski resorts of all types.
Travel Agent Service
Looking for a Travel Agent Service? Travel Counsellors are a Queen's Award winning Travel Agent.
Cape Town Flights
Book Cape Town flights through dealchecker.co.uk to get a great deal. Cape Town has fantastic weather and a wide range of activities to keep you busy.
Cancun Holidays
Cancun holidays offer beautiful scenery, calm waters and plenty of shopping. Get a taste of the good life while on holiday in Cancun.
Holidays
For bargain holidays to destinations including Mexico, South Africa, India and more, visit ULookUBook online today. Check out our free travel guides to help you make an informed decision for your holidays.
Travel Guides
As far as travel guides are concerned, your best move would be to check out our website at Travel.co.uk
Holidays to Fuerteventura
Come on; jump on the plane to the Canary Islands. Get information on cheap holidays to Fuerteventura at On The Beach.