ArcPad Scripting Object Model
FindNearestXY Method
See Also  Send comments on this topic.
x
Required. A Double that specifies the X coordinate of the search location, in the current coordinate system of the map.
y
Required. A Double that specifies the Y coordinate of the search location, in the current coordinate system of the map.
Tolerance
Optional. A Double that specifies the search tolerance in the current map units.
Envelope
Optional. A Rectangle that specifies the extent to search within.
Recordset Collection : FindNearestXY Method

Glossary Item Box

Description

Returns the record closest to the specified location.

Syntax

object.FindNearestXY( X, Y [,Tolerance] [,Envelope] )

Parameters

x
Required. A Double that specifies the X coordinate of the search location, in the current coordinate system of the map.
y
Required. A Double that specifies the Y coordinate of the search location, in the current coordinate system of the map.
Tolerance
Optional. A Double that specifies the search tolerance in the current map units.
Envelope
Optional. A Rectangle that specifies the extent to search within.

Return Type

Long

Remarks

Envelope is a rectangle specifying the extent to search within. If not specified, the entire map is searched. [Optional]. Tolerance is a double specifying the search tolerance. If not specified, the tolerance is the Pen Tolerance defined in the Display page of the ArcPad Options dialog box. [Optional]. A return value of 0 indicates that no record was found.

See Also

© 2012 All Rights Reserved.