In Delphi this will work even if the Sender is not a TdbGrid, as long as it has
a DataSource property:
TdbGrid(Sender).datasource:=myDataSource;
But it won't work in Lazarus if Sender is a different dbAware component., the
compiler will complain it's not a dbGrid.
Is there anyway to accomplish this same result in Lazarus, perhaps by using
RTTI? Or is there a compiler directive to stop this check?
An example would be great. Thanks.
A. G.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus