DBState
DBState
Indicate the status of the data server long sessID ; is the session ID
DBAsyncParmBlkPtr asyncPB; is a pointer to the asynchronous parameter
block
The result code returned by the DBState function indicates the status of the data server. You can use this function to determine whether the data server has
successfully executed a query and whether it has data available for you to
retrieve.
sessID is the session ID that was returned by the DBInit function. asyncPB is a pointer to the asynchronous parameter block. If you do not want
to call the function asynchronously, set this parameter to NIL
noErr (0) No error; ready for more text
rcDBValue (-801) Output data available
rcDBError (-802) Error executing function
rcDBExec (-805) Query currently executing
rcDBBadSessID -(806) Session ID is invalid
rcDBAsyncNotSupp (-809) The database extension does not support asynchronous
calls
rcDBPackNotInited (-813) The InitDBPack function has not yet been called