☜ | Number of SubscriptsDraft MDC Standard | ☞ |
The number of subscripts in a global variable is limited in that, in a global array reference, the total length of the array reference must not exceed 510 characters. The length of an array reference, assuming it is in the form ^ VB environment VB name ( i1 , i2 , ... , in ), is calculated as follows. If:
E = $Length(environment), | |
N = $Length(name), | |
I = $Length(i1) + $Length(i2) + ... + $Length(in), where each subscript (i1 through in) is either a numlit or a sublit, and | |
L = n, |
then:
the total length of an array reference = E + 3 + N + I + ( 2 * L ) + 15. |
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 28-Nov-2011, 21:03:46.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)