Constant Expression Required
I am getting the 'Constant expression required' error on the following lines of code:
Public dblAlertThresholds(0 To MaxTabs - 1, 1 To NumAlertThresholds) As Double
...
Public Const MaxTabs As Integer = 20
The debugger highlights the term 'MaxTabs' on the first line above and gives the error message. I do not understand why it is doing this as it is a constant I am using to dimension the array. The exact same piece of code was working before but now it isn't and I'm going crazy trying to find out why...
Thanks in advance for help.
John
|