
DECLARE Statement
Statements
4–10
058057 Tandem Computers Incorporated
Declaring a User Variable
or User Table
A user variable or table declaration remains in effect until the end of the current
ENFORM session unless you override the user variable or table by declaring a new
variable or table with the same name.
By default both user variables and elements in user tables are stored as 64-bit signed
integers. To change this default, specify the optional INTERNAL clause described in
Section 5. In the following example, the user variable no-orders is defined. The
INTERNAL clause indicates that no-orders is to be stored as alphanumeric with a
length of 9 bytes:
DECLARE no^orders INTERNAL A9;
The default display format for either a user variable or an element in a user table is a
fourteen character integer. To change this default, specify the optional AS clause. The
display format specified in the AS clause formats the user variable or table element
unless you provide an explicit AS clause in the LIST statement. The AS clause is
described in Section 5.
Specify the HEADING clause to provide a default heading for either a user variable or
a user table. ENFORM uses the default heading for the user variable or table
whenever an explicit HEADING clause is not specified in the LIST statement. The
HEADING clause is described in Section 5. In the following example, the default
display heading “Quarterly Totals” is supplied for the table qtr^totals:
DECLARE qtr^totals [4] HEADING "Quarterly Totals";
Initialize both user variables and user tables by using the SET statement discussed
later in this section.
Section 3 provides more information about user variables and user tables.
Summary of Contents for ENFORM 058057
Page 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Page 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Page 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Page 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...