

Schema Information › EApiFetchSchemaPrpTypeInfo › Example
Example
#include <eapidef.h>
EAPIRC rc = EAPI_SUCCESSFUL_RC;
OBJTYPECODE nObjTypeCode;
PRPTYPECODE nPrpTypeCode;
MNEMONIC szMnemonic;
PRPFORMAT ePrpFormat;
PRPCOLUMN nPrpColumn;
PRPLENGTH nPrpLength;
nObjTypeCode = 51;
nPrpTypeCode = 224;
rc = EApiFetchSchemaPrpTypeInfo((OBJTYPECODE) nObjTypeCode,
(PRPTYPECODE) nPrpTypeCode,
(PMNEMONIC) szMnemonic,
(PPRPFORMAT) &ePrpFormat,
(PPRPCOLUMN) &nPrpColumn,
(PPRPLENGTH) &nPrpLength);
if ( rc != EAPI_SUCCESSFUL_RC )
printf("Error in EApiFetchSchemaPrpTypeInfo\n");
else
{
printf("Mnemonic = %s\n", szMnemonic);
printf("PrpFormat = %c\n", (char)ePrpFormat);
printf("PrpColumn = %ld\n", nPrpColumn);
printf("PrpLength = %ld\n", nPrpLength);
}
Copyright © 2014 CA.
All rights reserved.
 
|
|