Item Property and Item Method

image\btn_example.gif

image\validfor_amv.gif

Applies To Objects

As a Property: QuickPads, Toolbars

As a Method: Sessions, Waits

Description

Returns an element in the collection.

Syntax

object.Item(i)
-or-
object.Item(name)

Object

Description

object

One of the above-listed objects.

i

Numeric index of element in the collection.

name

Name of element in the collection.

Comments

The Item method is the default method for collection objects. The syntax of the following statements are equivalent:

object.Item(name)
-or-
object(name)

In the first statement, the item is called explicitly; in the second statement, the item is called implicitly.

For the Sessions collection, the numeric index refers to the sequence that the sessions were opened. For example, Item(1) refers to the first session opened, Item(2) refers to the second session opened and so on. For QuickPads and Toolbars, the numeric index refers to the order in which these objects were created.

You can assign the returned object to a variable with the Set statement.