Community of VE/MapPoint Users and Developers
This is a discussion on processing pushpins within a zip code within the Development forums, part of the MapPoint 2006/2009 Discussion category; I read code in a .net book about MP that told you how to loop through a circle of given ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| processing pushpins within a zip code My project, however, needs to process pushpins within given zip codes - no circles involved. How would I compose such code? I'm planning on writing the directions to a word file. Thanks much, Gary |
| |||
| Re: processing pushpins within a zip code
Hi, A pushpin has a Location property and this has a StreetAddress property with a PostalCode property. Is that what you wants ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: processing pushpins within a zip code
Are you telling me I should loop through all my push pins and test in an if statement for those whose postal property = the zip code I'm interested in? How do you loop through all push pins? Gary |
| |||
| Re: processing pushpins within a zip code
Hi, Yes that's how to do it. Here is example in C#: Code: object o = 1;
Recordset rs = MP.ActiveMap.DataSets.get_Item(ref o).QueryAllRecords();
while (!rs.EOF) {
if (rs.Pushpin.Location.StreetAddress != null)
; // etc..
rs.MoveNext();
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: processing pushpins within a zip code
That code tests if there's a street address, I wanted to test of the push pins zip code equaled the one I'm interested in. WE're actually doing it in VBA. Thanks, though - it still is helpful. gary |
| |||
| Re: processing pushpins within a zip code
Hi, Yes but you have to check if Streetaddress property is not null. the Postal code property is one of the StreetAddress.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| code, processing, pushpins, zip |
| ||||
| Posted By | For | Type | Date | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 02-10-2008 03:18 PM | |
| Working With Excel and MapPoint - MP2K Magazine | This thread | Refback | 02-10-2008 12:27 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mappoint pushpins and zip code heavy hitters | tvsmvp | MapPoint 2006/2009 Discussion | 1 | 10-10-2005 01:01 PM |
| Batch Processing | Anonymous | MapPoint 2006/2009 Discussion | 0 | 08-27-2004 12:31 AM |
| Records matched to Zip Code don't have Pushpins | Anonymous | MapPoint 2006/2009 Discussion | 0 | 08-26-2004 03:12 PM |
| Pushpins missing when matched by Zip Code | Frielink | MapPoint 2006/2009 Discussion | 0 | 06-23-2004 11:15 AM |
| Zip code distances from pushpins? | mschoonmaker | MapPoint 2006/2009 Discussion | 0 | 08-14-2003 07:05 AM |
Catered Chalet
Book a catered chalet online through Holiday Hypermarket. It's easy to use the ski holidays search to find the right holiday for you.
Spain Holidays
Find and book Spain Holidays with Travel Counsellors. Holiday destinations around the world including Spain.
Turkey Holidays
Istanbul is Turkey's prime attraction as it has the most beautiful mosques and palaces of the country; it has Byzantine churches and Roman temples. Book Turkey Holidays online.
Holidays to Bahamas
Choose from a number of extraordinary holidays to the Bahamas at The Holiday Place. See pictures of these beautiful islands online.
Canaries
Find out all about the Canaries when you check out the ulookubook.com travel guides. Not only can you get a great holiday deal but you can find out useful information about potential holiday destinations.
Holiday
For the holiday of your life, that is easy to plan, visit Travel.co.uk to see all the options.
Cheap holidays in Cyprus
Stunning coastline! Beautiful beaches! Cheap holidays in Cyprus, available at On The Beach.