

Association Information › EApiFetchCardManyAscWithObjInfo › Example
Example
#include <eapidef.h>
EAPIRC rc = EAPI_SUCCESSFUL_RC;
LCOUNT lCount, i;
OBJID nObjectId;
ASCTYPECODE nAscTypeCode;
OBJID nArrayObjIds[100];
OBJTYPECODE nArrayObjTypeCodes[100];
OBJID nArrayOrgObjIds[100];
nObjectId = 70900L;
nAscTypeCode = 175;
lCount = 100L;
rc = EApiFetchCardManyAscWithObjInfo(nObjectId,
nAscTypeCode,
&lCount,
nArrayObjIds,
nArrayObjTypeCodes,
nArrayOrgObjIds);
if ( rc > EAPI_MAXIMUM_COUNT_REACHED_RC)
printf("Error in EApiFetchCardManyAsc\n");
else
{
printf("Count = %ld\n", lCount);
for (i=0; i < lCount; i++)
printf("Object Id[%ld] = %ld\n", i, nArrayObjIds[i]);
printf("Object Type Code[%Id] = %Id\n", i, nArrayObjTypeCodes[i]);
printf("Original Object ID[%ld] = %lk\n", i, nArrayOrgObjIds[i]);
}
Copyright © 2014 CA.
All rights reserved.
 
|
|