Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Sanity Check Please......Pushpin help within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; If a user manually adds two or more pushpins to a map control, there has got to be a way ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Sanity Check Please......Pushpin help I tried this example: Dim objDataSet As MapPoint.DataSet Dim objRecordset As MapPoint.Recordset Dim objField As MapPoint.Field objDataSet = AxMappointControl1.OpenMap("C:\Program Files\Microsoft MapPoint\Samples\Clients.ptm").DataSets("Clients") 'Retrieve all records objRecordset = objDataSet.QueryAllRecords 'Get the values Dim vals As String objRecordset.MoveFirst() Do Until objRecordset.EOF For Each objField In objRecordset.Fields vals = vals & CStr(objField.Value) & vbTab Next objField vals = vals & vbCrLf objRecordset.MoveNext() Loop MsgBox(vals) which works just great for the sample, but when I try the same thing after adding pushpins, my objRecordSet shows the right number of pushpins, but the number or Fields is 0, so this: For Each objField In objRecordset.Fields Just falls right through. |
| ||||
|
Don't worry about the fields. Consider this example. Code: Set objmap = MappointControl1.ActiveMap Dim objRecordSet As MapPointctl.Recordset Dim objpushpin As MapPointctl.Pushpin For Each objDataSet In objmap.DataSets If objDataSet.Name = "My Pushpins" Then Set objRecordSet = objDataSet.QueryAllRecords objRecordSet.MoveFirst Do Until objRecordSet.EOF MsgBox objRecordSet.Pushpin.Name objRecordSet.MoveNext Loop End If Exit For Next
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| check, pleasepushpin, sanity |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check out if GPS pos is on a Route | kristijan | MapPoint 2006/2009 Discussion | 11 | 04-19-2006 10:46 AM |
| Is there way to check if you're on a road | Omair | MapPoint 2006/2009 Discussion | 1 | 01-05-2005 06:56 AM |
| Check error with VBA before adding pushpin | Anonymous | MapPoint 2006/2009 Discussion | 2 | 03-24-2004 09:36 AM |
| GPS position check | Anonymous | MapPoint 2006/2009 Discussion | 14 | 01-19-2004 01:00 AM |
| Check if a waypoint and a pushpin exist | Anonymous | MapPoint 2006/2009 Discussion | 2 | 08-19-2003 09:27 AM |
Dalaman Holiday
Enjoy a wonderfully peaceful Dalaman holiday... Book through UlookUbook and save!