[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 09:31:23 CEST 2015
Péter Gábor wrote:
> Sorry!
> I was "misreading" your mail... you want to know the type of them.
>
> You can compare the type of them:
>
> if Sender = TButton then { do something} ;
Can this be elegantly put into a case statement?
--
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