Inspection Details

Module Scope Dim Keyword


Description
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.
Message
Use of 'Dim' keyword at module level
Type
Maintainability And Readability Issues
Default Severity
Suggestion

Back to List