View Single Post

  #4 (permalink)  
Old 03-04-2006
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

I hope I understeand all now
I think they are in different datasets. So you have to parse trough all datasets. Something like this should work. I did test it, but did not checked it with several datasets:

Code:
            MapPoint.DataSets dataSets = mp.ActiveMap.DataSets;
            foreach (MapPoint.DataSet ds in dataSets) {
                Recordset rs = ds.QueryAllRecords();
                rs.MoveFirst();
                while (!rs.EOF) {
                    Location loc = rs.Pushpin.Location;
                    Console.WriteLine(loc.Name);
                    rs.MoveNext();
                }
            }
Reply With Quote