Show/Hide Toolbars

XSharp

You cannot have both a PARAMETERS statement and declared parameters in the same entity.

This error message may occur in code like the following (and will only be shown if you have enabled the -memvar commandline option)

You either remove the declared parameters par1 and par2 or the PARAMETERS statement with par3 and par4.

The declared parameters are preferred over the PARAMETERS statement because this declares local variables which are faster than dynamic variables.

 

FUNCTION DoSomething(par1, par2)
PARAMETERS par3, par4
return par3 + par4