|
The predefined variables provided by MZ-Tools to be used in templates are specified below. Note that not all the predefined variables are supported in every kind of template (file header, class header, etc.).
- : it is used to cause the proper number of spaces (defined in the window, tab) to be inserted when the template is inserted into the source code.
- : the username of the Windows session (returned by the Win32 function), or a custom username (defined in the General tab).
- : the current date, in the short format defined in the .
- : the current time, in the short format defined in the .
- : the position of the cursor to insert new text after the template has been inserted into the source code.
- : the file name of the module at the insertion point.
- : the name of the module at the insertion point.
- : the type of the module ("Form", "Module", "UserControl", etc.) at the insertion point.
- : the body of the procedure at the insertion point. This variable is used when merging an error handler template with a procedure that already has code.
- : the name of the procedure at the insertion point.
- : the name of the return type ("Boolean", "Integer", etc.) of the procedure at the insertion point if it is a Function or Property Get.
- : the prefix of the return type of the procedure at the insertion point if it is a or , as defined in the Nomenclature Customization.
- : the type ("Sub", "Function", "Property") of the procedure at the insertion point. Typically it is used to generate the "Exit Sub", "Exit Function" and "Exit Property" statements.
- : the name of the project file.
- : the name of the project.
|