Delegate Name is Expected

Description

The identifier of an object that is not a delegate is specified as the event type when declaring the event.

Troubleshooting Tips

Check the type of the object specified as the type of the event.

Example

Class MyClass: Object
    
Event OnUserEvent: Integer;
End Class MyClass;

When the specified code is compiled, the following error is displayed: Delegate name is expected. To resolve the error, declare a new delegate and specify it as the type of the OnUserEvent event.

See also:

Compiler Messages