Creates a Recordset that returns the rows that are closest to the given search point. The records in the Recordset are sorted by the distance from the search point. The distance parameter is used to narrow down the search to only those shapes that fall within the distance from the search point.


Namespace: ActualMap
Assembly: ActualMap (in ActualMap.dll)

Syntax

Visual Basic (Declaration)
Public Function SearchNearest( _ 
   ByVal center As Point,  _ 
   ByVal expr As String _ 
) As Recordset
C#
public Recordset SearchNearest(
   Point center,
   string expr
)
C++
public:
 Recordset SearchNearest(
   Point center,
   String expr
) sealed 
J#
public Recordset SearchNearest(
   Point center,
   string expr
)
JScript
public  function SearchNearest(
   center : Point,
   expr : String
) : Recordset

Parameters

center
An object expression that evaluates to a Point object.
expr
A string expression that forms the 'where' clause portion of the method. The expression may contain:
1. Any combination of VBScript operators, constants, literal values, functions and field names that evaluates to a value of type Boolean.
2. Or, if the layer is a spatial database layer and the EnablePassthroughQuery property is true, the expression may contain any combination of SQL operators, constants, literal values, functions and field names that evaluates to a value of type Boolean.

Remarks

Note
VBScript and SQL expressions use different types of quotes for string literals, VBScript uses double quotes ("), SQL uses single quotes (').

See Also