setElementAt()

Set the value of a business object in a business object array.

Syntax

void setElementAt (int index, BusObj element)
 

Parameters

index
An integer representing the array position. The first element in the array is zero (0), the second is 1, the third is 2, and so on.
inputBusObj
The business object containing the values to which you want to set the array element.

Exceptions

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

Notes

This method sets the values of the business object at a specified array position to the values of an input business object.

Examples

The following example creates a new business object of type Item and adds it to the array items, as the fourth element.

items.setElementAt(5, new BusObj("Item"));
 

Copyright IBM Corp. 2003