Enform Plus Reference Manual

Enform Plus Language Elements
Enform Plus Reference Manual422684-001
3-9
Subscripts
The syntax for including subscripts is:
field-name-ref1
is the qualified name of a database field.
user-table-name
is the name of a user table defined by the DECLARE statement.
subscript
is an integer. The lowest valid value for subscript is 1. The highest valid value is
the maximum number of elements defined for the user or database table. (See the
following description for more information.)
subscript-range
has the form subscripti : subscriptj
subscripti
is the first element being referenced.
subscriptj
is the last element being referenced.
grp-name
is the name of a group described in the dictionary. A group is defined as a record
element whose level number (02, 03, 04,...) is less than that of the next record
element.
field-name-ref2
is the name of a subordinate field. A subordinate field is defined as a record element
whose level number (05, 06, 07,...) is greater than that of grp-name.
When a subscript is included with a reference to a table name, a user variable name, or a
field name, Enform Plus determines whether the subscript is a valid subscript value
allowed for the table, variable, or field. A valid subscript value for a field or user
variable is 1. Valid subscript values for a user table are defined in the DECLARE
statement. For example, consider the following user table declaration:
DECLARE u-var[ 24 ];
{ field-name-ref1 } { "["subscript"]" }
{ user-table-name } { "["subscript-range"]" }
{ "["subscript"]" }.field-name-ref2
grp-name { } { "["subscript"]" }
{ "["subscript-range"]" } { "["subscript-range"]" }