ArcPad Scripting Object Model
CenterAt Method
See Also  Example  Send comments on this topic.
pPoint
Required. A variable declared as a Point object.
Map Object : CenterAt Method

Glossary Item Box

Description

Centers the map at the location of the specified point object.

Syntax

object.CenterAt ( pPoint )

Parameters

pPoint
Required. A variable declared as a Point object.

Example

CenterAt Example
CenterAt Example (VBScript)Copy Code
Sub CenterMap
  Dim objPoint
  Set objPoint = Application.CreateAppObject("point")
  objPoint.X = Application.Map.PointerX
  objPoint.Y = Application.Map.PointerY
  Application.Map.CenterAt(objPoint)
  Set objPoint = Nothing
End Sub

Sub CenterMapXY
  Dim lngPointerX, lngPointerY
  lngPointerX = Application.Map.PointerX
  lngPointerY = Application.Map.PointerY
  Call Application.Map.CenterAtXY(lngPointerX,lngPointerY)
End Sub

See Also

© 2013 All Rights Reserved.