Delphi is an Object Pascal dialect if i'm right. FreePascal supports Object Pascal by default but if you want to use Delphi additions (such as Result is, if i'm right) you should set the mode to Delphi.

You can also set other dialects such as Mac Pascal, Turbo pascal, GNU pascal. You should use the compiler derective $mode for it.