[...](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 :
Title: Re: Component and required packages
Post by: iXaw on March 15, 2019, 12:29:29 pm
I guess you're referring to this kind of approach
https://stackoverflow.com/questions/54953288/discover-data-aware-controls-linked-to-a-dataset-field. In my opinion this is anachronistic.
Before defining my class, I specify my uses. It is therefore at the time of installation of the component that it is played.
I need to detect it (in the lpk file) and create the variable -dUSEUNIDAC to generate the proper compilation. So if Unidac is a package installed (packagefile.xml), the uses of my will look like this :