MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Find Record in Dataset from selected Pushpin

This is a discussion on Find Record in Dataset from selected Pushpin within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I've imported a dataset from a textfile and show it as pushpins in the map. So far everything ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-11-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 3
Find Record in Dataset from selected Pushpin

Hi,

I've imported a dataset from a textfile and show it as pushpins in the map. So far everything works just fine. From the textfile I also imported a field wich contains the GUID for this record. I set the type for this field to geoFieldData.
Now: If the user selects a pushpin, I get the event and the pushpinobject. This also works just fine. What I need is to find the matching record in the dataset, so that I would get the GUID which was imported with this pushpin.
Could anyone please help!?
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 09-11-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 3


Found the answer my self.
From the pushpinobject you use the parent-property to get the dataset. On this dataset you use the QueryAllRecords-methode to get a mappoint recordset. On this recordset you use the MoveToPushpin-methode and you'll be on the record to this pushpin and access all fields that have been imported.

Private Sub mMap_SelectionChange(ByVal pNewSelection As Object, ByVal pOldSelection As Object)
If TypeName(pNewSelection) = "Pushpin" Then
Dim pP As Pushpin
Set pP = pNewSelection
Dim pDS As DataSet
Set pDS = pP.Parent
Dim pRS As MapPointCtl.Recordset
Set pRS = pDS.QueryAllRecords
pRS.MoveToPushpin pP
If Not pRS.EOF Then
Debug.Print "Found: " + pRS.Fields(6).Value
RaiseEvent FilterSelection("ID = '" + pRS.Fields(6).Value + "'")
End If
End If
End Sub
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


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
find streets in a selected area Anonymous MapPoint 2006/2009 Discussion 0 10-20-2004 10:36 AM
Data Associated With Selected Pushpin Steve Wenck MapPoint 2006/2009 Discussion 1 08-12-2004 03:03 PM
Detecting the currently selected pushpin daxydoggie MapPoint 2006/2009 Discussion 2 11-19-2003 03:57 AM
Find Nearby Pushpin in dataset Dazzer Products: Pushpin Tool, Single State Mapper 1 10-16-2003 03:05 PM
PUSHPIN RECORD LIMIT gsc1ugs Products: Pushpin Tool, Single State Mapper 2 03-07-2003 10:00 AM


All times are GMT -5. The time now is 04:11 PM.


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

Ski Holidays Bulgaria
Ski holidays in Bulgaria offer beautiful scenery, friendly locals and exceptionally low prices. Book at Holiday Hypermarket for great value ski holidays.

Business Travel Agent
Book your business travel with a specialist business travel agent. Travel Counsellors are an award winning travel agent.

Holiday Jamaica
What springs to mind when you hear the word Jamaica? Bob Marley and Rum? Think again. Book a low cost holiday in Jamaica to explore this island for yourself.

St Lucia Holidays
St Lucia holidays offer something for everyone. Enjoyed by families and young couples alike, St Lucia is a great destination. See online!

Spain
Spain is such a diverse country that it has something to offer most holidaymakers. Finding delicious cuisine is no challenge and the shopping ranges from designer boutiques to unknown flea markets. Spain has much to offer.

Cheap Travel
Travel.co.uk is a travel comparison service which makes it easy to search and find your cheap travel options.

Cheap holidays in Cyprus
Stunning coastline! Beautiful beaches! Cheap holidays in Cyprus, available at On The Beach.


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