0

For one of my class libraries I would like to provide a simplified workaround code if a certain package is unavailable.

Is there a recommended way to check from code, which packages are installed in the IDE? Compiler or IDE defines would be preferred, but a solution in Pascal Script would be fine as well.

jwdietrich
  • 474
  • 6
  • 17
  • You mean, in a designtime package? Any other code can't access the IDE. – Marco van de Voort Dec 22 '20 at 17:06
  • @MarcovandeVoort Thanks, but it would be useful for any package, not only design-time. Unfortunately, the documentation for Pascal Script is sparse. Does it support the editor only? – jwdietrich Dec 23 '20 at 20:59
  • 1
    Pascal script is Lazarus(IDE) only, so won't do anything from code. But maybe in the IDE you can set a define to be passed to the compiler based on pascalscript somehow, but that is not my field of expertise – Marco van de Voort Dec 23 '20 at 22:10
  • Thanks for the replies. I see that this is obviously impossible in the current version. – jwdietrich Dec 26 '20 at 14:08

0 Answers0