ArcPad Scripting Object Model
LookupCode Method
See Also  Send comments on this topic.
CodeName
Required. A Variant that specifies the name or code to lookup.
CoordSys Object : LookupCode Method

Glossary Item Box

Description

Returns the code or name of the specified name or code.

Syntax

object.LookupCode ( CodeName )

Parameters

CodeName
Required. A Variant that specifies the name or code to lookup.

Return Type

Variant

Remarks

Use the LookupCode method to lookup the names of unit codes returned by the GeographicUnit and ProjectionUnit properties, projection type codes returned by the Projection property, and transformation method type codes returned by the Method property. You can also use the LookupCode method to lookup the codes of any of these names. For example, if you want to display the name of the transformation method used by the current map's coordinate system, you can use the following code:


     Set CS = Application.Map.CoordinateSystem
     MsgBox  "Method Type: " & CS.LookupCode(CS.Method)

See Also

© 2012 All Rights Reserved.