Please enable JavaScript to view this site.

ESL Documentation

The following example shows how a record definition references another record definition:

 

integer Salary

string FirstName MiddleName LastName record Name is

    FirstName   10

    MiddleName  10

    LastName    10

end record

string Street Apartment City State Zip Extension record Address is

    Street      20

    filler      1

    Apartment   5

    City        15

    filler      1

    State       15

    Zip         5

    filler      1

    Extension   4

end record

record EmployeeRec is

    record Name

    record Address

    filler 5

    Salary 10

end record

 

The last record, EmployeeRec, references the Name record and the Address record, which were both defined previously.