Retrieves the object type ID of an object type given the DP NAME, or the Name of an object instance given the FLGID.
Authorization
Administrator or user
Syntax
APIRET APIENTRY FLGConvertID( PSZ pszInBuffer,
PSZ pszOutBuffer,
FLGOPTIONS Options,
PFLGEXTCODE pExtCode );
Parameters
See Appendix D, Information Catalog Manager reason codes for an explanation of the returned reason codes.
Figure 46 shows the C language code required to issue the FLGConvertID call. This sample code retrieves the object type identifier for a specified object type.
Figure 46. Sample C language call to FLGConvertID
APIRET rc; // reason code
PSZ pszInBuffer; // pointer to input buffer
PSZ pszOutBuffer; // pointer to output buffer
FLGOPTIONS options=FLG_DPNAME; // option flag
FLGEXTCODE xc = 0; // extended code
.
.
.
strcpy (pszInBuffer,"CHARTS"); // object type's DP NAME
.
.
.
rc = FLGConvertID (pszInBuffer,
pszOutBuffer,
options,
&xc);