Al T 12 Posted November 9, 2022 Hi, How to uses {IF EXISTS}CodeSiteLogging;{ELSE}; I'm trying to figure out the best way to do this... if the library CodeSiteLogging doesn't exists, I still want the component to be able to work for others whom do not have it. any ideas? Share this post Link to post
Lajos Juhász 293 Posted November 9, 2022 https://docwiki.embarcadero.com/RADStudio/Sydney/en/Conditional_compilation_(Delphi) Share this post Link to post
Fr0sT.Brutal 900 Posted November 9, 2022 End user should build your unit with corresponding define. There's no way to know if a unit is available from inside the unit that uses it Share this post Link to post