[Lazarus] how to get Type of Sender or Components[i] in order to Cast?
Sven Barth
pascaldragon at googlemail.com
Mon Jul 27 07:57:20 CEST 2015
Am 27.07.2015 07:48 schrieb "Péter Gábor" <ptrg at freemail.hu>:
>
> 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} ;
The correct operator is "is" not "=".
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150727/7b6d2ea6/attachment-0003.html>
More information about the Lazarus
mailing list