Free Pascal Compiler version 2.6.4 [2014/03/06] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling foo.pas
foo.pas(8,18) Error: Identifier not found "mid"
foo.pas(10,20) Error: Identifier not found "mid"
foo.pas(11,14) Error: Identifier not found "mid"
foo.pas(26,4) Fatal: Syntax error, "." expected but ";" found
Fatal: Compilation aborted
Error: C:\FPC\2.6.4\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)