IsetBusinessObjectAtIndex()

Sets the business object at the specified index of the business object array.

Syntax

void IsetBusinessObjectAtIndex(long index, IBusinessObject inObj);

Parameters

index
The index in the business object array.
inObj
The business object to be placed in the array.

Exceptions

IInvalidIndexException
Thrown when the index is invalid.
IInvalidBusinessObjectTypeException
Thrown when the business object type is not supported by the business object array.

Example

// Set the business object at the index
long index = 1;
IBusinessObject aBusObj = accessSession.IcreateBusinessObject(
     "PayableNetChange");
exampleBusObjArray.IsetBusinessObjectAtIndex(index, aBusObj);

Copyright IBM Corp. 2004, 2005