Non-static or static fields or methods are specified when describing static or non-static properties using the old description syntax.
Check if the Shared directive is available in the described property as well as in used fields and methods.
Class MyClass: Object
Shared Private i: Integer;
Shared Function Get_Item: Integer;
Begin
Return i;
End Function Get_Item;
Property Item: Integer Get Get_Item;
End Class MyClass;
When the specified code is compiled, the string Property Item: Integer Get Get_Item; displays the following error: Invalid combination of static and non-static class members. To resolve the error, either delete the Shared directive from the headers of the Get_Item function and the i field or add this directive to the header of the Item property.
See also: