Interface Method or Property Definition is Expected

Description

The interface description includes the description of a member type that is not allowed within the interface. Only the following type members can be described in the interface:

Troubleshooting Tips

Move the description to the class implementation or remove it.

Example

Delegate CheckDelegate(Obj: Variant; Params: Variant);

Interface IMyInterface
    Sub Run;
    
    Function Check: Boolean;
    
    Property Name: String
        Get
        Set
    End Property Name;
    
    Event OnCheck: CheckDelegate;
End Interface IMyInterface;

When the specified ode is compiled, the string "Event OnCheck: CheckDelegate;" displays the following error: Interface method or property definition is expected. Events cannot be described in an interface. Remove the corresponding string or move the event description to the class implementation.

See also:

Compiler Messages