Why won't this code work? (VBScript)

I have this code in an ASP page:

Dim UpperBound
UpperBound = 42
Dim MortReason(UpperBound, 1)

And I get this result:

Expected integer constant

/GenSurgHP/ComplicationsACSMortality.asp, line 655

Dim MortReason(UpperBound, 1)
---------------^

(The little arrow points to the U in UpperBound.)

Can I really not dim an array with a variable?

Nevermind. I can’t Dim it, but I can ReDim it.