Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

$ECODE

M[UMPS] by Example

Introduced in the 1995 ANSI M[UMPS] language standard.

This variable provides information about the error-conditions that are unresolved.

If $ECODE[",M6," Write "Undefined local variable"

Note: the leftmost character of the value of $ECode is always a comma. This means that every error code that is stored in $ECode is surrounded by commas. If $ECode contains "M61", it would also contain "M6", so it is better to include the commas in the value to check for: check whether $ECode contains ",M6,".

For more examples of the use of special variable $ECode, see the function $STack.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

The information in this page is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 13-Sep-2014, 08:21:47.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)