Issues error and informationalmessages using the same mechanism employed by PV-WAVE system routines.
Informational If present and nonzero, specifies that the message is simply informational text, rather than an error, and that processing is to continue. In this case, !Err, !Error, and !Err_String are not set. The !Quiet system variable controls the printing of informational messages.
Ioerror Indicates that the error occurred while performing I/O. In this case, the action specified by the ON_IOERROR procedure is executed instead of that specified by ON_ERROR.
Noname Usually, the message includes the name of the issuing routine at the beginning. If Noname is present and nonzero, this name is omitted.
Noprefix Usually, the message includes the message prefix string at the beginning (as specified by the !Msg_Prefix system variable). If Noprefix is present and nonzero, this prefix is omitted.
Noprint If present and nonzero, causes actions to proceed quietly, without the message being printed to the screen. The error system variables are updated as usual.
Traceback If present and nonzero, provides a traceback message giving the location at which MESSAGE was called. This traceback message follows the output error message.
As a side-effect of issuing the error, the system variables !Err and !Error are set and the text of the error message is placed in the system variable !Err_String.
MESSAGE, 'Unexpected value encountered.'
CALC
. This would cause CALC
to halt after the following message was issued:
% CALC: Unexpected value encountered.
MESSAGE, 'Value is greater than 1000; ' + $ 'you will lose some accuracy.', /Noname,$ /Noprefix, /Informational
VERIFY
. This would cause the following message to be issued:
Value is greater than 1000; you will lose some accuracy.
VERIFY
.
For more information, see Chapter 4, System Variables.