Note that the Pascal terms 'var' and 'const' are interchangeable in this code:
program projectVarConst;
{$mode objfpc}{$H+}
{apptype console}
uses Classes, SysUtils;
const // you can use 'var' here - code compiles and produces identical executable
TRec : Record
S:String;
Int:Integer;
end = (S:'';Int:10);
begin
writeln(Format('TRec.Int value is %d',[TRec.Int]));
writeln;
writeln('Changing TRec''s int value ...');
TRec.Int := 20;
writeln;
writeln(Format('TRec.Int value is %d',[TRec.Int]));
readln;
end.