getObjectCount()

Retrieves the number of child business objects in a business object array.

Syntax

int getObjectCount();

Parameters

None.

Return values

An integer that indicates the number of child business objects in a business object array.

Notes

You can use the insertObject() method to insert child business objects into the business object array.

Examples

// iterate through objects in a BusObjContainer
for(int i = 0; i < myCont->getObjectCount(); i++)
   BusinessObject *myObj = myCont->getObject(i);
   if(myObj != NULL)
      myObj->doVerbFor();
}

See also

See also the description of the insertObject() method.

Copyright IBM Corp. 1997, 2004