Global Constants  Previous topicNext topicFirst topicLast topic

A module level string constant is a constant that is declared at the top of a module, before any Sub or Function routines. The constant SYSTEM_STRING is a module level string constant. If this was string constant was in a .BAS file and it was declared Public, then it would be a global string constant too.

Option Explicit

Private Const SYSTEM_STRING = "Login Error"

Private Sub Form_Load()
  Debug.Print "Form Loaded"
End Sub