beautypg.com

Errormsg – Visara Master Console Center Scripting Guide User Manual

Page 97

background image

Chapter 5 Script Commands

Scripting Guide

97

ERRORMSG

Syntax:

ERRORMSG( %ErrNum)==> $ErrMsg

Description:

Returns the error message associated with the error number.

Action:

The error message for the error number specified by ErrNum is

returned.

Parameters:

%ErrNum. Numeric expression. The error number retrieved from the

ERRORNUM() command.

Returns:

String value. The error message associated with the error number.

Notes:

See ERRORNUM() for more details.

Example:

%ErrCode := ERRORNUM()
$ErrMsg := ERRORMSG( %ErrCode)
LOG( LOG_FLT, “Error: ” + $ErrMsg)

See Also:

ERRORNUM