Visual Basic Newbie Question: Global Constants

mundania

Senior member
Jun 17, 2000
921
0
0
I can't seem to set a global constant in Visual Basic. I write something like:

Option Explicit
Global Const ACTION_SELL As String = "S"

The compiler tells me that I can't declare constants as Public in class modules.

All I want to do is to be able to do something like:

variable = MyModule.GlobalConstant

Am I missing something here?