Returns the declared lower index of an ARRAY and the declared lower bound of a BAG, LIST or SET. See paragraph 15.13 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.
Related functions: edmiGetUpperBound , edmiGetLowerIndex , edmiGetUpperIndex , edmiGetAggrDomain
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetLowerBound(SdaiAggr aggr,
SdaiInteger *lowerBound);
Arguments:
aggr |
A numeric aggregateID that uniquely identifies the aggregate of interest in the EDMdatabase. |
lowerBound |
An integer number is returned which specifies the lower bound of the specified aggregate <aggr>. |
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
SdaiAggr aggr;
SdaiInteger lowerBound;
EdmiError rstat;
. . .
if (rstat = edmiGetLowerBound (aggr, &lowerBound)) {
/* Error in operation */
printf("\nError: %s in edmiGetLowerBound\n",
edmiGetErrorText(rstat));
goto error;
}
/* print lower bound of aggregate */
printf("\nLower bound of aggregate: %lu is %ld",aggr,lowerBound);
. . .