This code compiles in D11, but not in D12.
If I remove the classes in taCenter I also get an error in D11.
Strangely enough, I don't need Classes in taRightJustify.
procedure TfrmMyForm.MyGridGetAlignment(Sender: TObject; ARow, ACol:
Integer; var HAlign: TAlignment; var VAlign: TVAlignment);
begin
if acol in [3,4] then halign:=taRightJustify;
if acol in [5] then halign:=classes.taCenter;
end;
Error messages in D12
Is the cause of error the Classes.taCenter?
How to solve?