Give this a try:
code:
? (NOT 5)
? (4 <> 5)
? (5 NOT 6)

NOT is a UNARY operator for logical operations wiht one operand. '<>' is a BINARY operator for mathematical operations resulting in a LOGICAL TRUE or FALSE.
NOT 0 is '1' or TRUE and 'NOT x' with X<>0 is '0' or FALSE.

The last code line will fail because NOT is an UNARY operator, thus the '5' is incorrect.

So, that means that '@ERROR NOT 0' is syntactically incorrect. It would also be sufficient to just do 'IF @ERROR' to catch an existing error code or 'IF NOT @ERROR' to catch an error code of '0'.

[ 15. September 2002, 15:50: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.