Type of the <ParameterName> Parameter of the <MethodName> Method is incompatible with the <index> Index Type of the <Propertyname> Property

Description

Types of values of the specified method parameter and the corresponding property index differ due to using old syntax.

Troubleshooting Tips

Check index types in the property description as well as types of corresponding parameters in the methods.

Example

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:

See also:

Compiler Messages