[Lazarus] Component compilation problem with lazarus 2.2

Howard Page-Clark hdpc at talktalk.net
Fri Oct 1 18:19:40 CEST 2021


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20211001/4b4097a3/attachment.html>


More information about the lazarus mailing list