Am 24.11.2011 17:30, schrieb Juha Manninen:
2011/11/24 Sven Barth <pascaldra...@googlemail.com
<mailto:pascaldra...@googlemail.com>>

Thanks for the explanations.


    In mode Delphi and my generic branch (I hope ^^) you are able to do
    it like this as well:

    myV := TMyDerived.Create(False);
    if myV is TFPGObjectList<TMyGen> then
      ...

    Under the condition that "TMyDerived" is declared like in your
    previous mail.


I think the syntax you gave should be
  if myV is TFPGObjectList<TControl> then

Yes, of course. Thank you for the correction.

I will continue learning where to usegenerics and where not to use them.

Have fun and feel free to ask further questions :)

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to