Item

Description

Returns the specified item in the QueryFieldDefs collection.

The argument to this method can be either a numeric index (itemNum) or a String (name):

  • For VB, the argument to the Item method can be either a numeric index or a name.
  • For Perl, there are two separate methods:
    • Item, which takes a numerical index argument
    • ItemByName, which takes a string name argument

Syntax

VBScript


queryfielddefs.Item item

Perl


$queryfielddefs->Item(itemNum);
$queryfielddefs->ItemByName(itemName);
Identifier
Description
queryfielddefs
A QueryFieldDefs collection object, representing the set of QueryFieldDef objects available for fetching as a collection.
item
(VB only) A Variant containing either an numeric index (item number) or a BSTR name (item name).
itemNum
(Perl only) 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.
itemName
(Perl only) A String that serves as a key into the collection.
Return value
The QueryFieldDef object at the specified location in the collection.