sdaiGetUpperBound


Returns the declared upper bound of an aggregate. See paragraph 15.10 in ISO 10303-11:1994(E) : The EXPRESS Language Reference Manual.
The model that holds the actual aggregate must be open before this operation can be successfully performed.
Header:
#include "sdai.h"
Prototype:
SdaiInteger sdaiGetUpperBound(SdaiAggr aggr);
Arguments:

aggr

A numeric aggregateID that uniquely identifies the aggregate of interest in the EDMdatabase.
The aggregateID is returned when the aggregate is created or it can be retrieved by an _EDMinterface_ get operation.

Returns:
The declared upper index of an ARRAY, or the declared upper bound of a BAG, LIST or SET.
Use sdaiErrorQuery to check for errors during operation.
Example:
SdaiInteger upperBound;
SdaiAggr aggrId;
SdaiErrorCode errCode;
...
upperBound = sdaiGetUpperBound(aggrId);
if (errCode = sdaiErrorQuery()) {
/* Error in operation */ 
printf("\nError: %s in sdaiGetUpperBound \n", 
edmiGetErrorText(errCode)); 
goto error; 
}
. . .