Procedure Identifier is Expected after set

Description

The function identifier is specified after the Set specifier instead of a procedure identifier.

Troubleshooting Tips

Check the type of the object specified after the Set specifier. Specify a procedure syntax, which is allowed for this property.

Example

Class MyClass: Object
    Sub Proc;
    Begin
        
    End Sub Proc;
    
    Function Func: Integer;
    Begin
        Return i
    End Function Func;
    
    Property Item: Integer Set Func;
End Class MyClass;

When the specified code is compiled, the string Property Item: Integer Set Func; displays the following error: Procedure identifier is expected after set. To resolve the error, specify the identifier of the Proc procedure after the Set specifier.

See also:

Compiler Messages