Creates a Recordset based on a search for all features within a distance from a point that meet the criteria in an expression.


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

Syntax

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

Parameters

center
An object expression that evaluates to a Point object.
distance
A numeric expression that evaluates to the distance from the point.
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