On 01/10/2021 16:32, Gabriele Cappelletto via lazarus wrote:


Sorry, I also allocate the complete file


Hello to all,

This code compiles with lazarus 2.0.12

constructor TExtTabPanel.Create(AOwner : TComponent);
begin
{$IFDEF LCL}
ᅵᅵ PageClass := TExtPanel_Tab;
{$ENDIF}
ᅵ inherited Create(AOwner);
ᅵ Disabled := False;
ᅵ Hidden := False;
end;ᅵ


but with lazarus 2.2 it gives me the following error:

*extp_design_ctrls.pas(1247,4) Error: Identifier not found "PageClass"*

How do I resolve?


Remove the {$ifdef}...{$endif} altogether.

The reference to "PageClass" is presumably some leftover from earlier code. It is not needed.

-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to