Submitted by DHuskic on Mon, 06/30/2014 - 07:36
Forums:
I have methods for recording time of execution/successful operations and error logging. I occasionally make updates to these methods and I have to manually go back and update each individual journal file that implements this. Is there a way to create a custom import and reference these methods? I hope I'm being clear enough, thanks in advance for any help or advice!
re: custom imports
If you are running the code as a journal file, then the answer is no. One of the limitations of journals is that all the code must reside in a single .vb file. In this case, the changes would have to be copied into each journal that makes use of the updated code.
However, if you have an author license and are compiling your code to .dll files; you could compile your 'utility' code to its own .dll file which your main compiled code could then call as needed. If/when you updated the utility code, you would recompile it and replace the old .dll file. Any existing compiled code that referenced the utility .dll would, assuming you didn't break any interfaces, make use of the code updates immediately.