View Single Post

  #4 (permalink)  
Old 01-29-2003
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
QueryCircle does support Pushpin

Hi, Peter:

I checked your code:

Set objRecords = objDataSet.QueryCircle(objLoc, 2000)
objRecords.MoveFirst
Do While Not objRecords.EOF
If TypeOf objRecords Is MapPoint.Pushpin Then
lngCount = lngCount + 1
End If
objRecords.MoveNext
Loop
List1.AddItem lngCount

Everything is fine but one place: the type of OBJRECORDS is MAPPOINT.Recordset, it is not a Pushpin. So you can't check its type to determine if the current record is a pushpin or not. :-)
Reply With Quote