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


Namespace: AspMap
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

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

Parameters

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