SPAM-LOW: [thelist] VBscript array declaration puzzlement

Peter Brunone ( peter at
Wed Sep 15 13:29:21 CDT 2004


	You can Dim with a constant, but not with a variable:

	You can of course ReDim with a variable, and according to Dino
Esposito, you can *create* an array with ReDim and bypass Dim entirely:



-----Original Message-----
From: thelist-bounces at
[mailto:thelist-bounces at] On Behalf Of Joel D Canfield

Why does this 

    Dim aryPlanIDs(intCount)

result in an 'expected constant' error, while

    Dim aryPlanIDs()
    ReDim aryPlanIDs(intCount)

seems to work fine?


More information about the thelist mailing list