Module Scope Dim Keyword
- The 'Public' keyword can only be used at module level; its counterpart 'Private' can also only be used at module level. 'Dim' however, can be used to declare both procedure and module scope variables. For consistency, it would be preferable to reserve 'Dim' for locals, and thus to use 'Private' instead of 'Dim' at module level.
- Use of 'Dim' keyword at module level
- Code Quality Issues
- Default Severity
Back to List