|
The feature allows you to review the source code to detect some unused declarations (constants, variables, parameters, procedures, etc.).
MZ-Tools offers the following ways to review the source code:
- The menu: with this menu you can review the source code of all the files of all the projects.
- The context menu of a project in the of Visual Basic: with this menu you can review the source code of all the files of the selected project.
- The context menu of a file in the of Visual Basic: with this menu you can review the source code of the selected file.
- The menu on the toolbar: with this menu you can review the source code of all the files of all the projects.
- The shortcut customized in the window, tab: with this shortcut you can review the source code of all the files of all the projects.
The results are shown in a Results Window.
The review of the source code can be launched automatically (or you can be asked) when you make the executable of a project, that is, clicking the menu (this is customizable in the window, tab). If an unused declaration is detected, the Results window keeps open (otherwise it is closed). You should remove the unused declarations before making the executable.
Remarks:
- For performance reasons, the source code review checks only private declarations, that is, declarations that can be used only inside the module where they are declared.
- Ensure that the source code can be compiled without errors before running this feature. If the source code has compilation errors, you can get false "procedure is not used" results for procedures that are events of controls.
- The review is not launched when clicking the menu (only when clicking the menu) due to a problem with the Visual Basic IDE.
See Also:
Results Window
General Customization
Shortcuts Customization
|