The following system variables are either set by IDL when an error condition occurs or used by IDL when displaying information about errors.
This system variable is now obsolete and has been replaced by the !ERROR_STATE system variable. Code that uses the
A structure variable which contains the status of the last error message.
** Structure!ERROR_STATE, 8 tags, length=112, data length=108: NAME STRING 'IDL_M_SUCCESS' BLOCK STRING 'IDL_MBLK_CORE' CODE LONG 0 SYS_CODE LONG Array[2] SYS_CODE_TYPE STRING '' MSG STRING '' SYS_MSG STRING '' MSG_PREFIX STRING '% '
| Note |
For historical reasons, SYS_CODE is a two-element longword array. The first element of the array (that is, SYS_CODE[0]) contains the OS-defined error code. The second element of the array is not used, and always contains zero. Either
This system variable replaces
This system variable is now obsolete and has been replaced by the !ERROR_STATE system variable. Code that uses the
This system variable is now obsolete and has been replaced by the !ERROR_STATE system variable. Code that uses the
An integer variable that controls when IDL checks for invalid mathematical computations (exceptions), such as division by zero. The three allowed values are:
For more information on invalid mathematical computations and error reporting, see Math Errors.
The value of
| Note |
A structure variable that contains the status from the last cursor read operation.
** Structure!MOUSE, 4 tags, length=16: X LONG 511 Y LONG 252 BUTTON LONG 4 TIME LONG 1428829775
See CURSOR for details on reading the cursor position.
This keyword is now obsolete and has been replaced by the !ERROR_STATE system variable. Code that uses the
This keyword is now obsolete and has been replaced by the !ERROR_STATE system variable. Code that uses the
This keyword is now obsolete and has been replaced by the !ERROR_STATE system variable. Code that uses the !SYSERR_STRING system variable will continue to function as before, but we suggest that all new code use
A structure variable that causes IDL to print warnings to the console or command log when obsolete IDL features are found at compile time.
** Structure!WARN, 3 tags, length=3: OBS_ROUTINES BYTE 0 OBS_SYSVARS BYTE 0 PARENS BYTE 0
Setting each of the three fields to 1 (one) generates a warning for a different type of obsolete code. If the OBS_ROUTINES field is set equal to one, IDL generates warnings when it encounters references to obsolete internal or library routines. If the OBS_SYSVARS field is set equal to one, IDL generates warnings when it encounters references to obsolete system variables. If the PARENS field is set equal to one, IDL generates warnings when it encounters a use of parentheses to specify an index into an array. No warnings are generated when the fields of the