Re: Arrays.


Posted by Jean Claude Servaye on January 31, 2001 at 15:27:49:

In Reply to: Arrays. posted by Demios on January 31, 2001 at 00:04:13:

First, declare a Record Type with all needed information for a person.

Type
MyRecord : Record
Name : Strun[20];
Surname : String [20];
Age : Integer;
Telephone : String [16];
end;


Then declare the array:

Var
MyArray : Array[1..20] of MyRecord;

To acces the 4th record :

MyArray[3].Name := 'Domios';
MyArray[3].Telephone := '123456'`;
...

Hope this may help.