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 field.
Fields Collection : Item Method

Glossary Item Box

Description

Returns the specified Field object.

Syntax

Set variable = object.Item ( Index )

Parameters

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

Return Type

Remarks

Index is a variant specifying the field to reference. It can be either the index or the name of the field. For example, if the variable objRecords references a RecordSet that contains a field named "pH" that has an index of 2, the following two lines of code will yield the same result:

       Set objField = objRecords.Fields.Item(2)
       Set objField = objRecords.Fields.Item("pH")
  
The Item method is the default method for the Fields collection. Therefore, the following two lines of code will yield the same result:

       Set objField = objRecords.Fields.Item("pH")
       Set objField = objRecords.Fields("pH")
  

See Also

© 2013 All Rights Reserved.