sdaiGetMemberCount
Returns the number of elements in the specified aggregate.
The model that holds the actual aggregate must be open before this operation can be successfully performed.
Header:
#include "sdai.h"
Prototype:
SdaiInteger sdaiGetMemberCount(SdaiAggr aggregate);
Arguments:
aggregate |
A numeric aggregateID that uniquely identifies the aggregate of interest in the EDMdatabase. |
Returns:
A SdaiInteger value that specifies the number of elements in the actual aggregate. Use sdaiErrorQuery to check for errors during operation.
Example:
SdaiInteger members;
SdaiAggr aggrId;
SdaiErrorCode errCode;
...
members = sdaiGetMemberCount(aggrId);
if (errCode = sdaiErrorQuery()) {
/* Error in operation */
printf("\nError: %s in sdaiGetMemberCount \n",
edmiGetErrorText(errCode));
goto error;
}
. . .