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
![Error Message-2](https://support.tmssoftware.com/uploads/default/original/2X/e/ebd018c5fedee76966e76049cc94a71cf40902c1.png)
Is the cause of error the Classes.taCenter?
How to solve?