forlang.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
RECORD
                                             Up Contents Index Back
─────RECORD─────────────────────────────────────────────────────────────────
 
     Action
 
     Declares a variable as a structure type.
 
     Syntax
 
     RECORD /type_name/ vname [ [attrs] ] [(dim)]
     [, vname[ [attrs] ] [(dim)] ]...
 
     Parameter          Description
 
     type_name          Name of a previously defined structure.
 
     vname              Name for the new variable.
 
     [attrs]            A list of attributes for the variable,
                        separated by commas.
 
     dim                A dimension declarator for specifying the
                        variable as an array.
 
     Remarks
 
     STRUCTURE defines a new data type. RECORD assigns this new data
     type to a variable.
 
     RECORD statements must precede all executable statements.
 
     See Also:  STRUCTURE
 
     Example
 
           STRUCTURE /address/
             LOGICAL*2    house_or_apt
             INTEGER*2    apt
             INTEGER*2    housenumber
             CHARACTER*30 street
             CHARACTER*20 city
             CHARACTER*2  state
             INTEGER*4    zip
           END STRUCTURE
 
           RECORD /address/ mailing_addr[NEAR](20), shipping_addr(20)
                                    -♦-