In accordance with the specification of the Fore language, parameters of methods passed by reference (described after the Var keyword) cannot have a default value.
Delete the assignment of default values for parameters passed by reference. Probably, these parameters need to be passed by a value, in this case delete the Var keyword.
Sub TestProc(Var i: Integer = 1);
Begin
End Sub TestProc;
When the specified code is compiled, the following error is displayed: Parameter passed by reference cannot have default values. To resolve the error, delete the assignment of the default value for the "i" parameter.
See also: