☜ | $QLENGTHM[UMPS] by Example | ☞ |
Introduced in the 1995 ANSI M[UMPS] language standard.
This function returns information about the number of subscripts in a name-reference.
Assume that the following references are made in this order:
Reference | Value | |
---|---|---|
$Data(^|"XXX"|ABC(1,2,3,4)) | 0 | |
Set X=$NAme(^(5,6)) | X="^|""XXX""|ABC(1,2,3,5,6)" | |
$QLength(X) | "5" |
Note that this function only operates on the string that contains the name of a variable. The variable that is identified in this string is never accessed by this function. Therefore, this function only affects the naked indicator if the string in question is stored in a global variable.
For additional examples of this function, see the function $NAme.
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, 10:33:41.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)