[Lazarus] how to get Type of Sender or Components[i] in order to Cast?

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Mon Jul 27 12:06:34 CEST 2015


Péter Gábor wrote:
> If you use the classname property you can:
> 
> case Sender.classname of
>   'TCheckBox': ShowMessage('This is a TCheckBox');
> end;

Good point. I wonder if that's mode-specific (language manual simply 
says "Free Pascal allows").

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list