The <MethodName> Method should Contain <ParametersNumber> Parameter(s)

Description

The number of parameters does not correspond with the number of indexes of the described property.

Troubleshooting Tips

Check the number of parameters specified in the signature of used procedures and functions:

Add deficient parameters to the used methods or remove redundant parameters from the property description.

Example

Class MyClass: Object
    i: Integer;
    
    Function Func: Integer;
    Begin
        Return i
    End Function Func;
    
    Property Item(a: Integer; b: String): Integer Get Func;
End Class MyClass;

When the specified code is compiled, the following error is displayed: The Func method should contain 2 parameters. To resolve the error, execute one of the following operations:

See also:

Compiler Messages