Local Constants  Previous topicNext topicFirst topicLast topic



A local string constant is a constant that is declared within a Sub or Function routine. The constant MY_STRING is a local string constant.

Private Sub Form_Load()
  Const MY_STRING = "Welcome to my application."
  MsgBox MY_STRING
End Sub