DQBerror$
FUNCTION

Prototype

DECLARE FUNCTION DQBerror$ ()

Parameters

Returns

A STRING holding the last error message

Description

With this DQBerror$, you do not need to check for every unsuccessfull result of your DQB function calls anymore: when something goes wrong, DQBerror$ automatically holds a short error message that explains what went wrong.

Notes:

none

Example

*****************************************************************************

' All integers for speed
DEFINT A-Z

'$INCLUDE:'DIRECTQB.BI'

' Let's initialize the library with one extra layer and one sound, but no EMS
IF DQBinit(1, 1, 0) THEN DQBclose: PRINT DQBerror$: END

' If we get here, no errors have occured
PRINT "DirectQB successfully initialized!"

' Ends program
DQBclose

*****************************************************************************