ArcPad Scripting Object Model
NearestSegment Method
See Also  Send comments on this topic.
pIPoint
Required. A Point object that represents the point to search from.
Points Collection : NearestSegment Method

Glossary Item Box

Description

Returns the segment number in the Points collection closest to the input point.

Syntax

object.NearestSegment ( pIPoint )

Parameters

pIPoint
Required. A Point object that represents the point to search from.

Return Type

Long

Remarks

Each segment represents a straight line consisting of two points in the Points collection.
The segment number returned is 1-based. So for segment N, the indices of the two points in the Points collection are N, N+1.

See Also

© 2013 All Rights Reserved.