ArcPad Scripting Object Model
Item Method
See Also  Send comments on this topic.
Index
Required. A Variant that specifies the name or index of the layer.
Layers Collection : Item Method

Glossary Item Box

Description

Returns the specified layer object.

Syntax

Set variable = object.Item ( index )

Parameters

Index
Required. A Variant that specifies the name or index of the layer.

Return Type

Remarks

index is a variant specifying the layer to reference. It can be either the index or the name of the layer as shown in the Table of Contents dialog box. For example, if your map contains a layer named "Soildata" that has an index of 2, the following two lines of code will yield the same result:

       Set theLayer = Application.Map.Layers.Item(2)
       Set theLayer = Application.Map.Layers.Item("Soildata")
  
The Item method is the default method for the Layers collection. Therefore, the following two lines of code will yield the same result:

       Set theLayer = Application.Map.Layers.Item("Soildata")
       Set theLayer = Application.Map.Layers("Soildata")
  

See Also

© 2013 All Rights Reserved.