Download Total Visual CodeTools Manual
Transcript
identifying its type, with additional options for global and module level variables. If you have public interfaces that should not change, select the “Don’t Rename Public Variables” option and public variables are not renamed. Consider using this option if your project becomes a DLL or library and you don’t want its interface to change. Variable renaming never changes the name of public variables in class modules. This is because public variables in class modules are essentially the same as class property and method names, and Code Cleanup does not rename procedure and property names. All variables in your project are analyzed for conversion to the specified naming convention. If a variable is already named with the appropriate naming convention, it is not modified (for instance, variable strTemp is not renamed strStrTemp). Additionally, if renaming a variable causes a conflict with global variables, the conversion is not applied. For instance, if a global variable intX exists, an integer variable X is not renamed to intX. Variables that are not renamed are listed in the Messages report. The variable renaming feature cannot apply the correct naming convention if compiler directives are used (e.g. #IF..#END IF) and the same variable name is defined in two different scopes in that case (for instance, one Public and one Private). For situations like this, eliminate the naming convention tags that would cause a conflict under Standards, Naming Conventions, Variable Scope tab. Get rid of the tags that impact your compiler directives. Naming Conventions are customized under Standards. See page 50 for details. Remove Line Numbers Select this option to remove all line numbers from your code. This option is useful for getting rid of out-of-date line numbers, for example if you have added code since adding line numbering. You should not use this option if your code references line numbers via GoTo LineNumber commands. Code Cleanup only removes the line numbers and does not remove any GoTo references to the line numbers, since this will cause your code to behave incorrectly. When you choose the “Remove Line Numbers” option, you should also select “Cleanup Style” with the option to standardize indentations. 134 Chapter 7: Code Cleanup Total Visual CodeTools