SplQpQueryDt
Appearance
SplQpQueryDt returns a list of supported data types.
Syntax
SplQpQueryDt(pcDatatypes, papszDatatypes);
Parameters
- pcDatatypes (PLONG) - input
- A pointer to a value indicating the maximum number of data types. On return, the value is updated to show the number of data types returned.
- papszDatatypes (PSZ) - input
- A pointer to an array of pointers that address the locations for the returned data type names. Each location must be an array of 16 characters to accommodate a name of the maximum length with its terminating NULL.
Return Code
- fSuccess (BOOL) - returns
- Return codes.
On completion, the handling routine must return BOOLEAN (fSuccess).
- TRUE Success
- FALSE Error
Remarks
This function should be called once with pcDatatypes set to 0 to determine the number of data types. The array papszDatatypes is not updated in this instance. The application can then allocate storage for the array and call the function a second time to return a list of supported data types.
Example Code
#include <os2.h> PLONG pcDatatypes; PSZ papszDatatypes; BOOL fSuccess; /* Return codes. */ fSuccess = SplQpQueryDt(pcDatatypes, papszDatatypes);