ArcPad Scripting Object Model
LookupConstant Method
See Also  Send comments on this topic.
Parameter
Required. A Variant that specifies the constant to lookup. This can be the name or code of the constant.
CoordSys Object : LookupConstant Method

Glossary Item Box

Description

Returns the conversion factor (to meters) of the specified constant.

Syntax

object.LookupConstant ( Parameter )

Parameters

Parameter
Required. A Variant that specifies the constant to lookup. This can be the name or code of the constant.

Return Type

Double

Remarks

Use the LookupConstant method to lookup the conversion factor (to meters) of unit codes returned by the GeographicUnit and ProjectionUnit properties. For example:


     Set CS = Application.Map.CoordinateSystem
     MsgBox CS.LookupConstant(CS.ProjectionUnit) & " " & CS.LookupCode(CS.ProjectionUnit) & " = 1 meter"

See Also

© 2012 All Rights Reserved.