Previous Topic: Qualified NameNext Topic: Examples of valid names


Subscripted name

An identifier can include subscripts. You can include one to three subscripts after the field or group name, separated by commas and enclosed in parentheses. If occurring items are nested in other occurring items, the number of subscripts must equal the number of levels of nesting. The definition of the field or group in working data must include the number of occurrences.

Thus, an identifier consists of a name, optionally preceded by a qualifier, and optionally followed by one to three subscripts. The syntax for the identifier is as follows:

[dataview‑name.]
[panel‑name.   ] name [(sub[,sub]])]
[level‑1‑name. ]

sub A subscript of the form:

{name           } [ {+ } {name            }]
{numeric literal} [ {‑ } {numeric literal }]

name-The name of a numeric field containing a valid integer numeric value. The field cannot be null eligible. Names used in subscripts can be qualified, but cannot be subscripted.

numeric literal-An integer numeric value with no decimal places.

Note: The value of a subscript must be an integer between one and the number of occurrences of the name being subscripted.

Subscripts are defined in the program definition working data. For details, see the Creating Programs Guide.