MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




how many pushpin are in the zone

This is a discussion on how many pushpin are in the zone within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I use mappoint within VB. I have drawn a zone around a route with the method FindNearby(). I have imported ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-23-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
how many pushpin are in the zone

I use mappoint within VB.

I have drawn a zone around a route with the method FindNearby().
I have imported data from a file (xls and txt), and placed on the map like pushpins. A place category has been created which describes pushpins which own to this zone.

But now, I would like to recover the pushpins which own to this zone.

Can you give me a way, please ?
I am desperate ... :-(

Thanks.

Val
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 12-23-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
This sample assumes you have a map loaded with an active route and some pushpins nearby. I show loading my sample map in the form_load event.

Code:
Private Sub Form_Load()
Set objmap = MappointControl1.OpenMap("c:\testroute.ptm")
End Sub


Private Sub Command1_Click()
Dim objmap As MapPointCtl.Map
Set objmap = MappointControl1.ActiveMap
Dim oResults As MapPointCtl.FindResults
Set oRoute = objmap.ActiveRoute
    
    Set oResults = oRoute.Directions.FindNearby(20)
    
    For i = 1 To oResults.Count
    	If TypeOf oResults.Item(i) Is Pushpin Then
	    strTest = strTest + oResults.Item(i).Name & vbCrLf
    	    i = i + 1
    	End If
    Next
    
    MappointControl1.PaneState = geoPaneNearbyPlaces
 
 MsgBox strTest
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
pushpin, zone


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
US Time Zone Question EdB MapPoint 2006/2009 Discussion 2 09-17-2004 02:35 PM
Does Route go through Zone Clive2004 MapPoint 2006/2009 Discussion 1 01-05-2004 11:58 AM
drivetime zone export problems Anonymous MapPoint 2006/2009 Discussion 4 06-18-2003 04:00 AM
export drivetime zone Anonymous MapPoint 2006/2009 Discussion 1 05-19-2003 10:25 AM
Find all zip codes in a drivetime zone SolverDS MapPoint 2006/2009 Discussion 0 09-28-2002 01:40 PM


All times are GMT -5. The time now is 05:36 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54