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

Chris Kelling kellingc at cox.net
Mon Jul 27 13:23:12 CEST 2015


We have one in Room B. It is Ed Sax's old machine. It is an early model that has the chicklett keyboard. About the only distinction tge PC Jr has is that is was a finacial failure. Both style of keyboards are wireless, but you had to have the keyboard aimed directly at the IR receiver on the PC. 

If it has the newer style keyboard, I say we take it. We can put both styles on display to show the difference. Otherwise, we should pass. 

-Chris

On Jul 27, 2015 6:06 AM, Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:
>
> 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] 
>
> -- 
> _______________________________________________ 
> Lazarus mailing list 
> Lazarus at lists.lazarus.freepascal.org 
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 


More information about the Lazarus mailing list