Returns the lower index of an ARRAY instance. See paragraph 15.17 in ISO 10303-11:1994(E) : The EXPRESS Language Reference Manual.
The model that holds the actual ARRAY aggregate must be open before this operation can be successfully performed.
Related functions: edmiGetUpperIndex , edmiGetLowerBound , edmiGetUpperBound , edmiGetAggrDomain
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetLowerIndex(SdaiArray array,
SdaiInteger *lowerIndex);
Arguments:
array |
A numeric arrayID that uniquely identifies the ARRAY aggregate instance of interest in the EDMdatabase. |
lowerIndex |
An integer number is returned which specifies the lower index of the specified ARRAY aggregate. |
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
SdaiArray array;
SdaiInteger lowerIndex;
EdmiError rstat;
. . .
if (rstat = edmiGetLowerIndex(array, &lowerIndex)) {
/* Error in operation */
printf("\nError: %s in edmiGetLowerIndex\n",
edmiGetErrorText(rstat));
goto error;
}
/* print lower index of array */
printf("\nLower index of array: %lu is %ld",array,lowerIndex);
. . .