|
The feature allows you to add procedures (functions, properties or subroutines) to the source code easily through a dialog.
MZ-Tools offers the following ways to show the window:
- The menu.
- The context menu of a code window.
- The button on the toolbar.
- The shortcut customized in the window, tab.
The window is the following:

In this window you can enter the following:
- The name of the procedure.
- The scope of the procedure: Public, Friend or Private.
- The type of procedure: property (Get and/or Let/Set), function or subroutine. In the case of properties, MZ-Tools suggests a name for the member variable, although you can change it.
- The arguments of a function or subroutine.
- The data type of a property or function. It can be a simple type of Visual Basic, a class, an enum, a collection or a control. You can enter the type directly in the editable combobox or you can fill the list with available types clicking the button.
- If you want to add a procedure header and / or error handler to the procedure.
When you click the button (or press the key), the procedure is added to the current module. You can repeat the operation several times with different values before closing the window.
- In the case of properties, the member variable is declared at the end of the section, but before the Windows APIs declarations if they exist. If it is a member variable which is not a simple type, MZ-Tools sets its value to Nothing in the Unload event (case of Forms) or Terminate (case of Classes, UserControls or UserDocuments).
- If the current line is a blank line between two procedures, then the procedure is inserted at that line. Otherwise, it is appended to the end of the module.
- You can use this feature to convert a public variable to a property.
- You can customize the nomenclature preferences for member variables and property parameters in the window, tab.
See Also:
Convert Public Variable To Property
Add Error Handler
Add Procedure Header
Nomenclature Customization
Error Handler Customization
Procedure Header Customization
Shortcuts Customization
|