Types of values of the specified method parameter and the corresponding property index differ due to using old syntax.
Check index types in the property description as well as types of corresponding parameters in the methods.
Class MyClass: Object
i: Integer;
Function Func(a: Integer; b: Double): 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 type of the b parameter of the Func method is incompatible with the b index type of the Item property. To resolve the error, execute one of the following operations:
Specify the String data type for the b parameter of the Func procedure.
Specify the Double data type for the b index of the Item property.
See also: