For this particular error I think you should just follow the advice of
compiler in the error message :
Le 14/08/2022 à 11:49, Skybuck Flying via fpc-pascal a écrit :
// normal/standard property
property StandardField : integer read mStandardField write
mStandardField;
mStandardField : integer; // ERROR "field definition not
allowed after methods or properties" problem 2.
Error: Fields cannot appear after a method or property definition,
start a new visibility section first
property StandardField : integer read mStandardField write
mStandardField;
public
mStandardField : integer;
But I think you'll get then, on the property line :
Error: Unknown class field or method identifier "mStandardField"
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal