Hello,
I override a TcustomDbGrid.
TlzDbGrid = class(TCustomDBGrid)
I use codes where a generic Dataset would be very useful :
[...] (DataSource.DataSet as TUniQuery).IndexFieldNames [...];
or
[...] (DataSource.DataSet as TZQuery).IndexFieldNames [...];
My problem is that on some of my PCs, ZeosLib is installed, on other Unidac, on some of them only TSQLQuery is present.
The ideal would be to create a generic TxxSQLQuery. I have no idea of the approach needed especially since referring to Unidac or ZeosLib if they are not installed makes little sense.
So I wonder more prosaically if it is possible to detect Unidac or ZeosLib in the lpk of my component.
I have some elements but I can not connect them functionally :
- <Packagefile.xml> <Name value ="dclunidac10"/>
- Primary and secondaryConfigPath
- <CustomOptions Value="if... ????.... -dUSEUNICODE"/>
- {$IFDEF USEUNICODE}
[...] (DataSource.DataSet as TUniQuery).IndexFieldNames [...];
{$ENDIF}
Can anyone suggest me a functional idea ?
Thanks. Regards. Gilles