Invalid Use of Delegate

Description

Invalid use of a delegate in the code.

Troubleshooting Tips

Delegates determine the signature of the methods, which can be used as custom event handlers. A delegate can be specified as the type of an event. Another use of delegates is not allowed.

Example

Delegate Change(Sender: Object);

Class TestClass: Object
    Sub Test;
    Begin
        Change(Self);
    End Sub Test;
End Class TestClass;

When the specified code is compiled, the string Change(Self); displays the following error: Invalid use of delegate. To resolve the error, delete the string where a delegate is invoked.

See also:

Compiler Messages