DBGetResultHandler
DBGetResultHandler Return a pointer to a result handler
#include <DatabaseAccess.h> Data Access Manager
OSErr DBGetResultHandler( dataType, theHandler, getSysHandler);
DBType dataType; specifies the data type
ProcPtr *theHandler; is a pointer to the result handler
Boolean getSysHandler; specifies the type of result handler
returns Error Code; 0=no error
The DBGetResultHandler function returns a pointer to a result handler for
the data type specified with the dataType parameter. The pointer is returned in
the parameter theHandler. You can use this function to obtain a pointer to a
result handler so that you can use it to convert to text an individual data item
retrieved by the DBGetItem function. The DBGetQueryResults function
automatically converts to text all of the data pointed to by the results record.
dataType specifies the data type for which the result handler is being
retrieved.
theHandler is a pointer to the result handler.
getSysHandler If you set the getSysHandler parameter to FALSE (0), the function
returns a pointer to the current application result handler for the
specified data type, or it returns NIL if there is no application result
handler for that data type. If you set the getSysHandler parameter to
TRUE ( nonzero), the function returns a pointer to the current
system result handler for the specified data type, or it returns NIL if
there is no system result handler for that data type.
Returns: an operating system Error Code.
noErr (0) No error
rcDBNoHandler (-811) There is no handler for this data type installed for the
current application
rcDBPackNotInited (-813) The InitDBPack function has not yet been called