Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dim varname (0 to var) as double????
Message
De
16/11/2002 18:46:12
 
 
À
16/11/2002 18:09:11
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00723577
Message ID:
00723579
Vues:
11
You have two options:
1. If you want simple to use varialble, which always will have this value, you must declare it as constant:
[in General Declarations]
Private Const Var = 10

[in some sub or function]
Dim VarName (0 To Var) As Double
2. If you want to declare array with variable number of elements (dynamic array), you must use ReDim operator:
Dim VarName() As Double
...
Var = 10
ReDim VarName(0 To Var) As Double

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform