Reputation: 689
I have a bunch of procs and funcs that I intend to use for all my projects. Therefore, I created and installed a package (MyLib.bpl), with all those procs and funcs to act as a global library. Now, I want the editor to understand that when I write MyFunc (a, b, c) in a unit's code, that function is contained in MyLib. Do I have anyway to list in the uses clause all the .pas units where those procs and funcs are contained? There's a way to tell the editor that it must look out in MyLib to find MyFunc (a, b, c)? I'm pretty sure that I'm missing something, but I don't know what.
Upvotes: 0
Views: 143
Reputation: 125651
You still have to put the unit that contains MyFunc
in your uses clause. Using packages means that the code isn't included in every application, but the compiler and linker still have to know where in the package they can find MyFunc
.
Upvotes: 3