Free Pascal Lazarus Program Tutorial 29 - On the Record


A record is a data type created by the programmer. A record can group variables of different data types and properties together. A person will be used as an example. There are hundreds of variables that can be used to describe a person, however, this program will use four variables.

The person data type will be created this way:
type
person = record
fname, lname: string;
gender: char;
wage:real;
end;

If we wanted to make a variable employee from the person record we would create the variable like this:
var
employee:person;

Code Download
FPProgT29.zip