Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dim restricted syntax
Message
De
03/03/1998 09:20:39
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, États-Unis
 
 
À
02/03/1998 15:58:24
Information générale
Forum:
Visual Basic
Catégorie:
VBScript
Divers
Thread ID:
00082157
Message ID:
00082270
Vues:
42
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform