What could be the error
Incomparible types
with SetLength(stud,length(stud)+1) ?
program Project2; {$APPTYPE CONSOLE} uses SysUtils, windows; type fullname = record surname:string; name: string; midname:string; end; fulldate = record day: integer; month:integer; year: integer; end; person = record fio: fullname; adress:string; born: fulldate; brain: double; end; var student: array of person; procedure newStud(var stud:array of person); begin SetLength(stud,length(stud)+1); ... end;