Function EN Version 1.90

@IsError

Debugging Logical Misc

Syntax

@IsError(VAR1[;VAR2[;....[;VAR98[;VAR99]]]]);

Description

Checks whether any of the variables VAR1-VAR99 contains an error status and returns TRUE if this is the case; otherwise FALSE.

IMPORTANT:
This @Function returns TRUE if one of the variables VAR1-VAR99 are of Type TEXT starts with "@Error"!

Example: @IsError(VAR1)

DBHANDLE1:=@OpenDB("TEST.NSF");
IF(@IsError(DBHANDLE1))
{
@LogReport("TEST.NSF could not be opened!!!");
}
DBHANDLE1:=@CloseDB(DBHANDLE1);

An attempt is made to open the database; in case of an error, a message is output and the database is then closed again.

Example: @IsError(VAR1;VAR2;VAR3;VAR4)

IF(@IsError(V1;V2;V3;V4))
{
@LogReport("An error has occurred!");
}

It is checked whether any of the variables contains an error.

Note : This text was machine-translated and may contain inaccuracies.