E r g e b n i s / R e s u l t
Resets the Open Access errornumber
B e s c h r e i b u n g / D e s c r i p t i o n
This procedure resets the Open Access error number and is for use with
ERRORS OFF & ERRORS ON code.
I have found a couple of places where the Open Access error number is not
correctly reset when you trap an error using ERRORS OFF. This function
forces the error number to zero.
S y n t a x
Code:
bool = call ('CLEARERR') P a r a m e t e r
There are no parameters for this procedure
R e t u r n s
The procedure returns a Boolean or True/False value.
TRUE - the procedure worked correctly.
FALSE - a problem occurred.
B e i s p i e l / E x a m p l e
Code:
attach 'ERRORS'
errors off
insert db ! example of a potential problem statement
enum = errornumber
a = call("CLEARERR")
! the errornumber has now been reset to zero.
errors on
detach 'ERRORS'