Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples
Left Hand Pointer

$NAME

1995 Version of ANSI (Equivalent to Current ISO Version) of Standard

Right Hand Pointer

7.1.5.10 $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 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 $NA(Name(s1, s2, ..., sm )).
  4. Otherwise, the function returns the string returned by $NA(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-2018 MUMPS Development Committee;
Copyright © Examples: 1995-2018 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2018 Ed de Moel.

This page most recently updated on 12-Sep-2014, 13:24:24 .

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