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 Keyword
◄Keywords► ◄Contents► ◄Index► ◄Back►
<identifier> = RECORD
[ <field list> ]
END
Description
The keyword RECORD declares a record and specifies zero or more
fields. Each field declaration consists of an identifier, a
colon, and a type. A field declaration is similar to a variable
declaration. Separate multiple fields with semicolons. Unlike
arrays, records can store dissimilar data types.
Every record has an optional field called a variant field. A
variant field, if it exists, is always the last field of a record;
it allows one field to store one of several data types. The
variant part is similar to a CASE statement. The compiler sets
aside enough memory to hold the largest data type that the
resulting variant field can hold.
See also: ARRAY, Data Types Hierarchy, Variant Record