The number of parameters does not correspond with the number of indexes of the described property.
Check the number of parameters specified in the signature of used procedures and functions:
In a function specified after the Get specifier, the number of parameters should match the number of indexes of the described property.
In a procedure specified after the Set specifier, the number of parameters should exceed the number of indexes of the described property by one. The type of the last additional parameter in the method should match the type of the property.
Add deficient parameters to the used methods or remove redundant parameters from the property description.
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:
Add two parameters in the header of the Func function.
Delete two parameters in the header of the Item property.
See also: