Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dim restricted syntax
Message
From
03/03/1998 09:20:39
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, United States
 
 
To
02/03/1998 15:58:24
General information
Forum:
Visual Basic
Category:
VBScript
Miscellaneous
Thread ID:
00082157
Message ID:
00082270
Views:
46
>I have an array which I declare with Dim. That array size will be defined by a property. However, the Dim syntax does not allow us to pass anything else than an integer. For example, Dim laField(lnField,2) does not work. I need to put Dim laField(5,2).

I'm not sure if VBScript allows ReDim or not offhand, but you can do something like this:

Dim laField() As Variant
Redim laMyArray(lnField, 2)
Jay Shepherd
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform