Identifier of a Field or a Method is Expected after <AccessSpecifier>

Description

The identifier of an object that is neither a class field nor a procedure is stated after the access identifier, in accordance with an old version of the properties description syntax.

Troubleshooting Tips

Check the type of the object specified after the corresponding access specifier.

Example

Class MyClass: Object
    Const i = 100;
    
    Property Item: Integer Get i;
End Class MyClass;

When the specified code is compiled, the string Property Item: Integer Get i; displays the following error: Identifier of a field or a method is expected after <AccessSpecifier>. To resolve the error, transfer the "i" constant to the block of variables and specify it as an integer variable, or write a new function and specify its identifier after the Get specifier.

See also:

Compiler Messages