I don't understand cause of error
program Project2;
{$APPTYPE CONSOLE}
uses
SysUtils;
function Rus(mes: string):string;
var
i: integer; // number of processed character
begin
for i:=1 to length(mes) do case mes[i] of
'A'-'n'
mes[i]:= Chr(Ord(mes[i]) - 64); 'р'..'я'// after first mes occur the Error(27): Operator not applicable to this operand type
mes[i] .:= Chr (Ord(mes [i] ) -16);
end;
rus := mes; end;