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

$NAME

Draft MDC Standard

7.1.5.14 $NAme

$NA[ME] ( glvn )

This form returns a string value which is the namevalue denoting the named glvn. Note that naked references are permitted in the argument, but that the returned value is always a non-naked reference. If glvn includes an environment, then the namevalue shall include the canonic representation of that environment; otherwise the namevalue shall not include an environment.

$NA[ME] ( glvn , intexpr )

This form returns a string value which is a namevalue denoting either all or part of the supplied glvn, depending on the value of intexpr. Let $NAme(glvn) applied to the supplied glvn be of the form Name(s1, s2, ..., sn ), considering n to be zero if the glvn has no subscripts, and let m be the value of intexpr. Then $NAme(glvn , intexpr) is defined as follows:

  1. It is erroneous for m to be less than zero (ecode = "M39").
  2. If m = 0, the result is Name.
  3. If n > m, the function returns the string returned by $NAme(Name(s1, s2, ..., sm )).
  4. Otherwise, the function returns the string returned by $NAme(glvn).
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.

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 15-Nov-2023, 13:10:23.

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