Item
Description
Returns the specified item in the collection. Retrieves an AttachmentField object.
The argument to this method can be either a numeric index (itemNum) or a String (name).
Syntax
VBScript
collection.Item
(itemNum)
collection.Item
(name)
Perl
$collection->Item
(itemNum);
$collection->ItemByName
(name);
- Identifier
- Description
- collection
- An AttachmentFields collection object, representing all of the attachment fields in a record.
- itemNum
- A Long that serves as an index into the collection. This index is 0-based so the first item in the collection is numbered 0, not 1.
- name
- A String that serves as a key into the collection. This string
corresponds to the
FieldName
of the desired AttachmentField. - Return value
- The AttachmentField object at the specified location in the collection.
Example
VBScript
set attachFields = entity.AttachmentFields
numFields = attachFields.Count
For x = 0 to numFields - 1
set oneField = attachFields.Item x
' ...
Next