Important: The information in this document is obsolete and should not be used for new development.
DBResultsToText
After retrieving a results record fromDBGetQueryResults, you can use theDBResultsToTextfunction to convert the returned data to text.
FUNCTION DBResultsToText (results: ResultsRecord; VAR theText: Handle): OSErr;
results- The results record returned by the
DBGetQueryResultsfunction.theText- The
DBResultsToTextfunction returns a handle to the converted text in this parameter. This handle is allocated by the Data Access Manager.DESCRIPTION
TheDBResultsToTextfunction calls result handlers to convert to text the data retrieved by theDBGetQueryResultsfunction.SPECIAL CONSIDERATIONS
TheDBResultsToTextfunction may move or purge memory. You should not call this routine from within an interrupt, such as in a completion routine or a VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theDBResultsToTextfunction are
Trap macro Selector _DBResultsToText $0413 RESULT CODES
noErr 0 No error rcDBPackNotInited -813 The InitDBPackfunction has not yet been calledSEE ALSO
See Listing 12-1 begining on page 12-18 for an example of the use of theDBResultsToTextfunction. See "Converting Query Results to Text" beginning on page 12-43 for a discussion of result handlers.