Recent

Author Topic: Remove uses clause?  (Read 1790 times)

sarason

  • Jr. Member
  • **
  • Posts: 74
Remove uses clause?
« on: October 19, 2012, 06:09:34 am »
Is there a way of disabling a uses clause unit in Lazarus without crossing it out in every instance of its use in
a large project ?

regards sarason

Bart

  • Hero Member
  • *****
  • Posts: 3547
    • Bart en Mariska's Webstek
Re: Remove uses clause?
« Reply #1 on: October 19, 2012, 08:32:13 am »
You can use ifdefs perhaps?

Code: [Select]
  uses SysUtils, Classes,
  {$ifdef SomeDefine}
  MyCustomProc,
  MyCustomLogger,
  {$endif}
  Dialogs;

Bart