sdaiGetUpperIndex
Returns the upper index of an ARRAY. See paragraph 15.11 in ISO 10303-11:1994(E) : The EXPRESS Language Reference Manual.
The model that holds the actual ARRAY must be open before this operation can be successfully performed.
Header:
#include "sdai.h"
Prototype:
SdaiInteger sdaiGetUpperIndex(SdaiArray array);
Arguments:
array |
A numeric aggregateID that uniquely identifies the array of interest in the EDMdatabase. |
Returns:
Upper index of the actual ARRAY.
Use sdaiErrorQuery to check for errors during operation.
Example:
SdaiInteger upperIndex;
SdaiAggr arrayId;
SdaiErrorCode errCode;
...
upperIndex = sdaiGetUpperIndex (aggrId);
if (errCode = sdaiErrorQuery()) {
/* Error in operation */
printf("\nError: %s in sdaiGetUpperIndex \n",
edmiGetErrorText(errCode));
goto error;
}
. . .