elementAt()

Retrieve a single business object by specifying its position in this business object array.

Syntax

BusObj elementAt(int index)
 

Parameters

index
The array element to retrieve. The first element in the array is zero (0), the second is 1, the third is 2, and so on.

Exceptions

CollaborationException--The elementAt() method can set the following exception type for this exception:

Examples

The following example retrieves the 11th business object in the items array and assigns it to the Item variable.

BusObj Item = items.elementAt(10);
 

Copyright IBM Corp. 1997, 2003