Owner's manual

DOKuStar Validation for Ascent Capture Page 97
You can now test your code with real loaded data. You can also add changes to your code. When you are ready, you
will close or suspend the batch. Then:
- The data are exported (which leads to the
Data_OnExported event in the scripting code) and unloaded.
- The project will not be closed and the scripting code will not be unloaded.
Keeping the project and the scripting code loaded enables you once again to edit your code while no batch is open
(this is now the same situation like it was when we started DOKuStar Validation from the administration module).
What is important to know is that each time a batch is opened, the scripting code is unloaded and loaded again. When
you have breakpoints set in your code, they are gone after opening a batch and must be set once again, as they are not
stored together with the code. This leads to the following consequence:
Note: You cannot test your code by setting breakpoints in the startup phase
“Startup phase” means the code that is executed when a batch is loaded and covers events like
Application_OnProjectLoaded and Data_OnImported. To test this part of the code, you must fall back
on things like message boxes, writing output to a file, etc.