SPAM-LOW: [thelist] VBscript array declaration puzzlement

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Wed Sep 15 13:29:21 CDT 2004


Joel,

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

http://url123.com/b2udp

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

http://url123.com/b3743

Cheers,

Peter

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] 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?

joel





More information about the thelist mailing list